firebase-mobile-payments icon indicating copy to clipboard operation
firebase-mobile-payments copied to clipboard

"Application tried to present modally a view controller that is already being presented" in Stripe integration with SwiftUI

Open yuriynefedov opened this issue 3 years ago • 0 comments

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

image

System information

  • OS: macOS Big Sur; iOS 15

yuriynefedov avatar Dec 31 '21 10:12 yuriynefedov