A proxy for access to the size and coordinate space (for anchor resolution) of the container view.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
struct GeometryProxy
A proxy for access to the size and coordinate space (for anchor resolution) of the container view.
SDKs
Framework
struct GeometryProxy
var safe Area Insets: Edge Insets
The safe area inset of the container view.
var size: CGSize
The size of the container view.
func frame(in: Coordinate Space) -> CGRect
Returns the container view’s bounds rectangle, converted to a defined coordinate space.
struct Geometry Reader
A container view that defines its content as a function of its own size and coordinate space.
protocol Geometry Effect
An effect that changes the visual appearance of a view, largely without changing its ancestors or descendents.
struct Angle
A geometric angle whose value you access in either radians or degrees.
struct Anchor
An opaque value derived from an anchor source and a particular view.
protocol Vector Arithmetic
A type that can serve as the animatable data of an animatable type.