Vlad +  Dev

Learning the new @Observable macro in iOS 17

Cover Image for Learning the new @Observable macro in iOS 17
Vlad Bălan
Vlad Bălan

I've been learning about the new data flow architecture announced at WWDC 2023! I am currently trying to figure out how to create a user class which will hold my data regarding the following:

• User name

• Size of Water Bottle

• Amount of bottles I would like to drink every day.

• Daily streak record

I'm finding the relationship between Swift's front end and back end quite tricky to work through, but I'm just trying to persevere step by step before I launch into how to handle notifications based on bottle size and daily goal.


Having seen some tutorials which explained the old way of handling State, Environment and Observable objects, I think learning the new Observation way is definitely the easier way, but more importantly, I'm sure this is going to become industry standard over the years.


Other posts