Post

Replies

Boosts

Views

Activity

Comment on Using an @EnvironmentObject Breaks Xcode Previews
Yeah that's the one thing that usually gives me trouble with Swift/SwiftUI, I find the thing I need but then can't find any explanation about how it works or even a basic example. I also wish they'd cover SwiftUI on macOS more; I do a lot of it and a at least a decent number of their examples are really designed for iOS only and either have properties that don't work on macOS or just don't look right.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Comment on Using an @EnvironmentObject Breaks Xcode Previews
Yeah that's the one thing that usually gives me trouble with Swift/SwiftUI, I find the thing I need but then can't find any explanation about how it works or even a basic example. I also wish they'd cover SwiftUI on macOS more; I do a lot of it and a at least a decent number of their examples are really designed for iOS only and either have properties that don't work on macOS or just don't look right.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Using an @EnvironmentObject Breaks Xcode Previews
Yep, that was it! Thanks for the help! (also you'd really think guides on how to use EnvironmentObjects would mention this)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22