Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
randomNumber7
· 4y ago · 0 comments
All the @State, @Published etc. pragmas look to me like they hacked the compiler to do the stuff they couldn't do in a regular library....
Comments
[–]
viktorcode
4y ago
Those are just property wrappers; another feature of the language accessible to everyone.
[–]
b3morales
4y ago
Incorrect. The SwiftUI property wrappers, most notably @State, use internal knowledge and non-public reflection. They are not stably implementable by outsiders.