Post

Replies

Boosts

Views

Activity

Comment on SwiftUI and SwiftData @Query
@malc I've tried to just pass down the allNotes array to each tab view and any sub children of them expects a @Bindable to edit. However I get the error here when I do that: https://forums.developer.apple.com/forums/thread/757820
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’24
Comment on SwiftUI and SwiftData @Query
Thanks so much for the reply. If I understand correctly, suppose I have a Query like: @Query var allNotes [Note] in my ContentView and I have 3 child views, one for each tab in the app I would pass down a binding to allNotes to each of the 3 child views?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’24