Type Safely

Type Safely

Share this post

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

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

Share this post

Type Safely
Type Safely
Create a Property Wrapper For Double That Returns The Value As a Rounded String
Share
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 …

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.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share