init(initialValue:)
Creates an observed object with an initial value.
Declaration
@MainActor @preconcurrency init(initialValue: ObjectType)Parameters
- initialValue:
An initial value.
Discussion
This initializer has the same behavior as the init(wrappedValue:) initializer. See that initializer for more information.