NamedCoordinateSpace

A named coordinate space.

StructureiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+NamedCoordinateSpace in SwiftUI

Declaration

React
type NamedCoordinateSpace =
  | 'scrollView'
  | { named: string | number | boolean; }
  | { scrollView: { axis: Axis; }; };
Swift
struct NamedCoordinateSpace

Pass a literal, or build one with SwiftUI.NamedCoordinateSpace from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Type methods

Overview

Use the coordinateSpace(_:) modifier to assign a name to the local coordinate space of a parent view. Child views can then refer to that coordinate space using .named(_:).

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Drawing and shapes.