Uncover the Simplicity of SwiftData: Replace CoreData in Seconds! 👉 kzitem.info/news/bejne/kXmHrpdvkKxjaIY&ab_channel=Rebeloper-RebelDeveloper
@yourbestsail
Жыл бұрын
In the first example it should be more correct to use @Bindable instead of @State, according to the WWDC apple presentation of the Observation framework. Isn’t it?
@rebeloper
Жыл бұрын
Thanks for the feedback. Learning every day. Next check out SwiftUI Navigation Perfected: Harnessing NStack's Game-changing Capabilities 👇 kzitem.info/news/bejne/z6iq2GVqooGbY3o&ab_channel=Rebeloper-RebelDeveloper
@LebenWerden
5 ай бұрын
What about the other Proprty Wrappers? Better avoiding them? @StateObject @ObservedObject @Binding @EnvironmentObject @Published
@rebeloper
5 ай бұрын
You want to use them if you target pre iOS17. Next watch Unveiling the reality of AI in coding: kzitem.info/news/bejne/o56V0a1ri5eqm3Y&ab_channel=Rebeloper-RebelDeveloper
@cpbulletsponge
Жыл бұрын
Thanks for the great tutorial :) 1 Question: When using @Observable for AppState, how would you then write out the AppState properties to persistent storage as using @AppStorage with @Observable does not seem to work?
@rebeloper
Жыл бұрын
@AppStorage can only be used on a View, not inside an @Observable class. Persisting data with @AppStorage needs to be done on the View itself. Next check out SwiftUI Navigation Perfected: Harnessing NStack's Game-changing Capabilities 👇 kzitem.info/news/bejne/z6iq2GVqooGbY3o&ab_channel=Rebeloper-RebelDeveloper
@gamersarki124
Жыл бұрын
Watching from Pakistan..💕
@rebeloper
Жыл бұрын
🤗 You will love this video: Uncover the Simplicity of SwiftData: Replace CoreData in Seconds! 👇 kzitem.info/news/bejne/kXmHrpdvkKxjaIY&ab_channel=Rebeloper-RebelDeveloper
Пікірлер: 11