'PKAddPaymentPassViewController dismiss on cancel
Currently I'm presenting the PKAddPaymentPassViewController in my react-native application with the following code
let delegate = PKAddPaymentPassDelegate();
let pkAddPaymentPassViewController = PKAddPaymentPassViewController.init(requestConfiguration: pkAddPaymentPassRequestConfiguration!, delegate:delegate );
DispatchQueue.main.async {
RCTPresentedViewController()?.present(pkAddPaymentPassViewController!, animated: true, completion: nil);
}
The problem is, that when I'm taping the cancel button on the left-top, the View is not disappearing.
Has anyone faced this problem ? any help would be appreciated
Solution 1:[1]
Maybe you use present(vc, animated: ) to show this modally but trying to dismiss it using popViewController(animated: ) instead of dismiss(animated: , completion: )?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | P. Fraccaro |
