When using the new Observation features in #Swiftlang, be careful with the naming of your properties. It creates a stored property w/ an underscore in front, so don't do the same, surprises may happen.
Also didSet doesn't work, in case you didn't notice yet (via @martinlexow). Though the generated code actually moves the didSet to the fresh new property (not sure this is just a bug or actually impossible to do right w/ macros).
Conversation
Notices
-
Embed this notice
Helge Heß (helge@mastodon.social)'s status on Friday, 16-Jun-2023 05:26:04 JST Helge Heß