init(initialValue:)
Creates a state property that stores an initial value.
Declaration
init(initialValue value: Value)Parameters
- value:
An initial value to store in the state property.
Discussion
This initializer has the same behavior as the init(wrappedValue:) initializer. See that initializer for more information.