firebase-mobile-payments
firebase-mobile-payments copied to clipboard
"Application tried to present modally a view controller that is already being presented" in Stripe integration with SwiftUI
Bug report
Describe the bug
I'm currently integrating Stripe card payments into a SwiftUI iOS app. It relies on Firebase Functions for the backend. Everything is built upon your example.
Would really appreciate your thoughts on why this happens/how to go around fixing it.
Here's the error I get after pressing Buy in the content view:
Application tried to present modally a view controller <Stripe.BottomSheetViewController: 0x15df81de0> that is already being presented by <_TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVS_7AnyViewVS_12RootModifier__: 0x15ec0bac0>
To Reproduce
Run the SwiftUI integration provided in this repository.
Screenshots
System information
- OS: macOS Big Sur; iOS 15