SwiftUI Data Flow in iOS 17 – Observation & @Observable
Go to https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.
iOS 17 introduces the new Observation Framework as well as the @Observable macro. This is a new an improved way to update your UI when underlying data of a model object changes and the concept of @StateObject and @ObservedObject no longer apply. This has cleaner syntax and better performance so it is a welcomed update.
This tutorial was created using Xcode 15 beta 2 and iOS 17.
My iOS Dev Courses:
https://seanallen.teachable.com/
WWDC Session on @Observable:
https://developer.apple.com/videos/play/wwdc2023/10149/
Twitter:
Sean Allen – https://twitter.com/seanallen_dev
Hired.com:
https://hired.com/x/1n01g
Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
Paul Hudson’s Hacking With Swift:
https://gumroad.com/a/762098803
Donny Wals – Combine:
https://gumroad.com/a/909014131
Mark Moeyken’s SwiftUI Books:
www.bigmountainstudio.com/swiftui-views-book/fzc51
Objc.io Books (Thinking in SwiftUI & Advanced Swift):
https://gumroad.com/a/656585843
#swift #softwaredeveloper #iosdeveloper