Aviel

@aviel
130 Followers
136 Following
160 Posts
iOS at Adobe • Philly, US
SwiftUIhttp://SwiftUI.wtf
Bento (link 🌳)https://bento.me/aviel

The new Observation framework for #SwiftUI keeps getting better! 🎉

@phausler just merged a change to drop the requirement of default values for properties in @Observable class! (Assuming I read the PR correctly? https://github.com/apple/swift/pull/65984/files)

[Observation] Add property definite initialization support by phausler · Pull Request #65984 · apple/swift

This is a draft adoption of what the definite initialization feature adoption for the @Observable macro would look like (given the pitched syntax).

GitHub
#wwdc session “get started with privacy manifests” says there’s a specific list of “privacy impacting SDKs”, and that the list is published on Apple Docs. Was anyone able to find where that list is?

Ok it looks like Observation tracks “what is used” but not “who used” (image 1 - I see nothing about the caller, I expected something like _enclosingInstance…).
Yet when I have 2 views, each using a different var from the same class, they don’t both diff - ie the class knows not to notify them of the change? (Image 2 - I clicked “Change A”, only SomeViewA changed)

How does it work and what am I missing here?

@BasicAppleGuy your dream finally come true
Not the kind of ZStack I meant…
kinda tempted to click actually