Tagged: Property Wrapper

There are 5 items tagged #Property Wrapper.
And there a lots of other tags to explore.

Should we manually call @StateObject initializer

Is it OK to manually initialize @StateObject? Let's find out.

@State variable initialization in SwiftUI

Learn how to initialize a state variable and discuss whether you should do it or not.

How to scale margin and padding with @ScaledMetric Property Wrapper

Dynamic Type automatically scales a font size according to Accessibility settings. In iOS 14, we also have a way to scale numeric values like padding and margin.

What is a Property Wrapper in Swift

As the name implies, a property wrapper is a new type that wraps a property to add additional logic. Let's see what it capable of and the benefit it provided.

How to initialize @StateObject with parameters in SwiftUI

@StateObject is an essential property wrapper in SwiftUI, but I found the way to initialize them is not obvious.

See all tags.