Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.
This repository was 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

@yuriynefedov

Description

@yuriynefedov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions