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

Mentioned in

Discussion

To read this value, use the FocusedValue property wrapper.

See Also

Exposing value types to focused views