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
Modal view won't dismiss #2
Comments
I can't even seem to get the Add City modal to fire the request to get city completion results using Xcode 11.0 Beta 2. |
TextField completion handlers behaviors have changed with beta 2. I’m on it to fix it. |
@Jsayer7 fixed in Xcode 11 beta 3 |
This bug makes me crazy. I still can't make this modal view dismiss when touching the cancel button... |
please try this: Button(action: { |
That very well could work, however that seems like a hacky solution. To me, this is one of the shortcomings with SwiftUI. Of all things, presenting and dismissing a modal/sheet should not be this difficult. |
hope the bug can be fixed in feature betas. @Jsayer7 |
I tried a new solution that seems to be the default solution provided by Apple (see example here) but still not working. |
@bpisano did you try it on Xcode 11 Beta5? I test in another project, seems fixed. |
Yes I updated the project for Xcode 11 beta 5 a few hours ago. I tried on a small project and it works. But doing the exact same things in this projects doesn’t work 🤔 |
Resolved in my last commit. |
The NewCityView should be dismissed when adding a new city. It actually doesn't work. Probably due to a SwiftUI bug.
The text was updated successfully, but these errors were encountered: