From 79a834e5adc9871206e6670bdf95abcf0040bcd4 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Fri, 20 Oct 2023 17:45:45 +0100 Subject: [PATCH] Remove unused gradient asset --- .../Contents.json | 12 ------------ .../WebBrowserBarBackground.pdf | Bin 2676 -> 0 bytes .../CheckoutViewController.swift | 18 +++++++++--------- 3 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/Contents.json delete mode 100644 Samples/MobileBuyIntegration/MobileBuyIntegration/Assets.xcassets/WebBrowserBarBackground.imageset/WebBrowserBarBackground.pdf 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 e4be6e476684037a490b3d6f4ddc2193bfb0c454..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2676 zcma)8e{2**6gCx7J0S`d6)NcXqo$X(x4&-h_JGv1ca$`=_IlT(5NP6Zx4qlucK5ow zS5FHxNW_8>A*7U$+NQ=t10fm=Nfk^`Ap|uILYruf6^s%sF_=^d3Dh{Vx4Yfru9o>@ z_syGc-psuB&9_?~3f5OsZXW;?B%!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 z=y|_&_E1y;)&X!F0?}WK%D^7?khUoS3dOTxItG$C12!T#7p0IdCqM#p02#D^0@oZL zJS*rl<*{?*x4nj-%d(=Qn`3>1t-{1D@oo}gB44NA3vKVkHs(2&6)Y@hN?MHy8pNt$ z{ZIrH8LwHp)=T6S3LI)rrMT0Ck@DqB`UkMA5-)uM-ZV)jc+gS9aH!O#X zMGB0Y?V?EfUKB-o@=;tK%EzKJ<;0>%I^Tsv_#PBe**upYT`Mz|uJU41PytSPLl9NJ uLQ^Ec1uMjuE1PyAtSBhww#E?=@ihUb2PIt7c~v(OhW|c5dHMS0`u_kWW4W;a 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) + ) } }()