Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kiftio committed Oct 19, 2023
1 parent eae05fd commit cb81e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/ShopifyCheckout/ShopifyCheckout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public func preload(checkout url: URL) {

/// Presents the checkout from a given `UIViewController`.
public func present(checkout url: URL, from: UIViewController, delegate: CheckoutDelegate? = nil) {
let view = CheckoutViewController(checkoutURL: url, delegate: delegate)
let viewController = UINavigationController(rootViewController: view)
viewController.presentationController?.delegate = view
let rootViewController = CheckoutViewController(checkoutURL: url, delegate: delegate)
let viewController = UINavigationController(rootViewController: rootViewController)
viewController.presentationController?.delegate = rootViewController
from.present(viewController, animated: true)
}

0 comments on commit cb81e78

Please sign in to comment.