When using the SwiftUI wrapper: afterpayCheckout only, when the user attempts to dismiss the web checkout view by swiping down, it is supposed to pop up an alert view asking “Are you sure?”. It doesn't do this.
It also refreshes the page, loosing anything the user has entered, and making them log in again.
This does not appear to happen on iOS 13.
🦶 Reproduction Steps
Steps to reproduce the behaviour:
Open the checkout (with SwiftUI — good example is the Example app)
Swipe to dismiss
🤔 Expected Results
There should be a alert which confirms that the user wishes to dismiss
🌎 Environment
afterpayCheckout
SwiftUI wrapper💬 Description
When using the SwiftUI wrapper:
afterpayCheckout
only, when the user attempts to dismiss the web checkout view by swiping down, it is supposed to pop up an alert view asking “Are you sure?”. It doesn't do this.It also refreshes the page, loosing anything the user has entered, and making them log in again.
This does not appear to happen on iOS 13.
🦶 Reproduction Steps
Steps to reproduce the behaviour:
🤔 Expected Results
There should be a alert which confirms that the user wishes to dismiss
😲 Actual Results
Screenshots
https://user-images.githubusercontent.com/790199/109878580-90d34380-7cc8-11eb-98a9-8bfa53a66ef1.mov
🤝 Related Issues
A similar problem, with a potential solution, is explored here: https://stackoverflow.com/questions/56615408/prevent-dismissal-of-modal-view-controller-in-swiftui