Sorry it took a bit for me to reply, but I thought some code would help illustrate the second point. I open-sourced a module here which uses a property wrapper to affect Decodable
decoding. In this case, I don't need the property wrapper to be a var
, since it never changes. I suspect property wrappers which are class
types might find this useful as well.
1 Like