14 ms·
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....
by randomNumber7 5y ago
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....
- viktorcode 5y agoThose are just property wrappers; another feature of the language accessible to everyone.
- b3morales 5y agoIncorrect. The SwiftUI property wrappers, most notably @State, use internal knowledge and non-public reflection. They are not stably implementable by outsiders.