Post

Replies

Boosts

Views

Activity

Comment on SwiftUI Preview crashes on simple code
Yes, I understand that I was using the wrong code, I wasn't trying to add padding to the first Text view, but confused "padding()" with "spacer()". My point is, that "simple" code mistake should not take down the whole preview with a crash. A nice, error message would be more helpful. Because of the crashing, it took much longer to figure out what my mistake was. If the preview/SwiftUI is so sensitive to small syntax errors, how does anyone get any work done? ;)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22