Create a Property Wrapper For Double That Returns The Value As a Rounded String
Daily Coding Tip 083

haven’t tried making a property wrapper in a while, and there’s a lot of things that are confusing about them. Because this isn’t @State
, @Binding
or @Published
the value is immutable due to the lack of the optional projectedValue
property. Being unable to alter the wrappedValue
property means that I can’t refresh …
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.