Type Safely

Type Safely

Create a Property Wrapper For Double That Returns The Value As a Rounded String

Daily Coding Tip 083

Millie Sturgeon's avatar
Millie Sturgeon
May 08, 2022
∙ Paid
Image by Shima Abedinzade from Pixabay

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 …

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture