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

Make SwiftUI live previews less crash-y #5

Open
ianthetechie opened this issue Aug 27, 2023 · 0 comments
Open

Make SwiftUI live previews less crash-y #5

ianthetechie opened this issue Aug 27, 2023 · 0 comments
Labels
SwiftUI Issues specifically related to SwiftUI

Comments

@ianthetechie
Copy link
Collaborator

Right now it's almost trivial to get the SwiftUI live previews to crash. This is an unfortunate result of it trying to do exactly what you say with each keystroke. As the underlying C++ library will simply crash if it encounters most sorts of invalid states, it makes the editor extremely hard to use.

Off the top of my head, ideally we would be able to catch these and have the MapView instead return some sane-looking error view when in preview mode. We probably need a way to turn this off and/or a better way to surface crash details, but those can be addressed in separate issues. This issue is specifically about the consuming developer's experience.

@ianthetechie ianthetechie added the SwiftUI Issues specifically related to SwiftUI label Aug 27, 2023
ianthetechie pushed a commit that referenced this issue Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SwiftUI Issues specifically related to SwiftUI
Projects
None yet
Development

No branches or pull requests

1 participant