EdgeInsets
The inset distances for the sides of a rectangle.
Declaration
type EdgeInsets =
| { bottom?: number; leading?: number; top?: number; trailing?: number; }
| { top: number; leading: number; bottom: number; trailing: number; }
| EdgeInsetsChain;@frozen struct EdgeInsetsUsed by
- contentMarginsConfigures the content margin for a provided placement.
- resizableSets the mode by which SwiftUI resizes an image to fit its space.
- listRowInsetsSets the insets of rows in a list on the specified edges.
- paddingAdds an equal padding amount to specific edges of this view.
- safeAreaPaddingAdds the provided insets into the safe area of this view.
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.
- EdgeInsetsChainEdgeInsets with chained calls: SwiftUI.EdgeInsets.inset(...).
- EdgeSetAn efficient set of edges.
- GeometryProxyA proxy for access to the size and coordinate space (for anchor resolution) of the container view.
- GridItemA description of a row or a column in a lazy grid.