diff --git a/Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/Contents.json b/Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/Contents.json deleted file mode 100644 index e404c599..00000000 --- a/Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "filename" : "WebBrowserBarBackground.pdf", - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/WebBrowserBarBackground.pdf b/Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/WebBrowserBarBackground.pdf deleted file mode 100644 index e4be6e47..00000000 Binary files a/Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/WebBrowserBarBackground.pdf and /dev/null differ diff --git a/Sources/ShopifyCheckout/CheckoutViewController.swift b/Sources/ShopifyCheckout/CheckoutViewController.swift index c65267b0..0f2b32ca 100644 --- a/Sources/ShopifyCheckout/CheckoutViewController.swift +++ b/Sources/ShopifyCheckout/CheckoutViewController.swift @@ -44,15 +44,15 @@ class CheckoutViewController: UIViewController, UIAdaptivePresentationController private lazy var closeBarButtonItem: UIBarButtonItem = { switch ShopifyCheckout.configuration.colorScheme { - case .web: - let closeIcon = UIImage(systemName: "xmark")? - .withConfiguration(UIImage.SymbolConfiguration(pointSize: 14, weight: .regular)) - .withTintColor(.white, renderingMode: .alwaysOriginal) - return UIBarButtonItem(image: closeIcon, style: .plain, target: self, action: #selector(close)) - default: - return UIBarButtonItem( - barButtonSystemItem: .close, target: self, action: #selector(close) - ) + case .web: + let closeIcon = UIImage(systemName: "xmark")? + .withConfiguration(UIImage.SymbolConfiguration(pointSize: 14, weight: .regular)) + .withTintColor(.white, renderingMode: .alwaysOriginal) + return UIBarButtonItem(image: closeIcon, style: .plain, target: self, action: #selector(close)) + default: + return UIBarButtonItem( + barButtonSystemItem: .close, target: self, action: #selector(close) + ) } }()