Contents

focusedSceneValue(_:)

Sets the focused value for the given object type at a scene-wide scope.

Declaration

@export(implementation) nonisolated func focusedSceneValue<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