News for hackers. Stuff that matters.
Re:WWDC21 by read_if_gay_ on Monday May 24, 2021 @02:01PM (#27267639)
Property wrappers are unnecessary but sometimes they allow for very clean code. For example you can create a wrapper to persist data to UserDefaults like

@Persisted(key: “myKey”) var myInt = 42

which is a really nice way to avoid a lot of boilerplate.

There are no comments on this comment yet.