diff --git a/Samples/MobileBuyIntegration/MobileBuyIntegration/CartViewController.swift b/Samples/MobileBuyIntegration/MobileBuyIntegration/CartViewController.swift index 4b259cc0..f9fe2b0d 100644 --- a/Samples/MobileBuyIntegration/MobileBuyIntegration/CartViewController.swift +++ b/Samples/MobileBuyIntegration/MobileBuyIntegration/CartViewController.swift @@ -136,7 +136,7 @@ class CartViewController: UIViewController, UITableViewDelegate, UITableViewData ShopifyCheckout.present(checkout: url, from: self, delegate: self) } - @IBAction public func resetCart() { + @IBAction private func resetCart() { CartManager.shared.resetCart() } diff --git a/Sources/ShopifyCheckout/CheckoutDelegate.swift b/Sources/ShopifyCheckout/CheckoutDelegate.swift index b6ac0373..3138eb8d 100644 --- a/Sources/ShopifyCheckout/CheckoutDelegate.swift +++ b/Sources/ShopifyCheckout/CheckoutDelegate.swift @@ -43,7 +43,7 @@ public protocol CheckoutDelegate: AnyObject { func checkoutDidClickContactLink(url: URL) } -extension CheckoutDelegate { +extension CheckoutDelegate where Self: UIViewController { /// Tells te delegate that the buyer clicked an external link public func checkoutDidClickLink(url: URL) { handleUrl(url)