Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlickTypeTextEditor fails to present in a sheet #10

Open
pixlwave opened this issue Jan 4, 2022 · 0 comments
Open

FlickTypeTextEditor fails to present in a sheet #10

pixlwave opened this issue Jan 4, 2022 · 0 comments

Comments

@pixlwave
Copy link
Contributor

pixlwave commented Jan 4, 2022

Minimal code sample to reproduce:

struct ContentView: View {
    @State var message = ""
    
    var body: some View {
        Color.blue
            .sheet(isPresented: .constant(true)) {
                FlickTypeTextEditor("Add Message", text: $message, mode: .ask, onCommit: { })
            }
    }
}

The first tap on the FlickTypeTextEditor results in the following message in the console:

2022-01-04 14:25:01.881590+0000 My WatchKit Extension[10590:118594] [Presentation] Attempt to present <PUICQuickboardRemoteViewController: 0x7fd4b3013800> on <SPHostingViewController: 0x7fd4ae811a00> (from <SPHostingViewController: 0x7fd4ae811a00>) whose view is not in the window hierarchy.

Any attempts after that all generate this message instead, irrespective of if the text editor is inside a sheet or part of the root view:

2022-01-04 14:25:11.918978+0000 My WatchKit Extension[10590:118594] Quickboard: attempting to present before the previous presentation has been cleaned up!

I haven't had the time to investigate what causes this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant