GeometryProxy
A proxy for access to the size and coordinate space (for anchor resolution) of the container view.
Declaration
type GeometryProxy =
| { readonly containerCornerInsets: RectangleCornerInsets; readonly safeAreaInsets: EdgeInsets; readonly size: CGSize; bounds(options: { of: NamedCoordinateSpace; }): Promise<CGRect
| null>; concentricCornerRadii(options: { in: CGRect; }): Promise<RectangleCornerRadii
| null>; contentMargins(options: { for: ContentMarginGuide; edges?: EdgeSet; }): Promise<EdgeInsets>; frame(options: { in: CoordinateSpaceProtocol; }): Promise<CGRect>; reservedRegions(options: { kind: ReservedRegionKind; options?: ReservedRegionQueryOptions; layoutDirectionBehavior?: LayoutDirectionBehavior; }): Promise<ReservedRegion[]>; };struct GeometryProxyProperties
containerCornerInsets*RectangleCornerInsetsReturns the corner insets of the container view. Use this value to adjust the geometry of a view based on the overlapping corner insets of the container view. Corner insets may include pieces of system UI as well as the corner radii for windows and presentations.
safeAreaInsets*EdgeInsetsThe safe area inset of the container view.
size*CGSizeThe size of the container view.
Used by
See also
More in Layout.
- AlignmentAn alignment in both axes.
- ContainerBackgroundPlacementThe placement of a container background.
- ContainerValuesReadableKeys of SwiftUI ContainerValues JavaScript can read.
- ContainerValuesWritableKeys of SwiftUI ContainerValues JavaScript can write.
- ControlSizeThe size classes, like regular or small, that you can apply to controls within a view.
- DocumentLaunchGeometryProxyA proxy for access to the frame of the scene and its title view.
- DynamicTypeSizeA Dynamic Type size, which specifies how large scalable content should be.
- EdgeAn enumeration to indicate one edge of a rectangle.
- EdgeInsetsThe inset distances for the sides of a rectangle.
- EdgeInsetsChainEdgeInsets with chained calls: SwiftUI.EdgeInsets.inset(...).
- EdgeSetAn efficient set of edges.
- GridItemA description of a row or a column in a lazy grid.