Initializer

init(wrappedValue:)

Creates an observed object with an initial wrapped value.

Declaration

init(wrappedValue: ObjectType)

Parameters

wrappedValue

An initial value.

Discussion

You don’t call this initializer directly. Instead, declare a property with the @ObservedObject attribute, and provide an initial value.

See Also

Creating an Observed Object

init(initialValue: ObjectType)

Creates an observed object with an initial value.