Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

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

Open
yuriynefedov opened this issue Dec 31, 2021 · 0 comments

Comments

@yuriynefedov
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant