Contents

focusedValue(_:)

Sets the focused value for the given object type.

Declaration

nonisolated func focusedValue<T>(_ object: T?) -> some View where T : AnyObject, T : Observable

Parameters

  • object:

    The object to read the focus value for.

Mentioned in

Discussion

To read this value, use the FocusedValue property wrapper.

See Also

Exposing value types to focused views