HorizontalEdge
An edge on the horizontal axis.
Declaration
type HorizontalEdge = 'leading' | 'trailing' | { rawValue: number; };@frozen enum HorizontalEdgePass a literal, or build one with SwiftUI.HorizontalEdge from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'leading'SwiftUI.HorizontalEdge.leadingThe leading edge.
'trailing'SwiftUI.HorizontalEdge.trailingThe trailing edge.
Type methods
Overview
Use a horizontal edge for tasks like setting a swipe action with the
View.swipeActions(edge:allowsFullSwipe:content:)
view modifier. The positions of the leading and trailing edges
depend on the locale chosen by the user.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
- overlayArrangementEdgeThe horizontal edge a view in an overlay arrangement occupies when the arrangement transitions to a horizontal layout.
- safeAreaBarShows the specified content as a custom bar above or below the modified view.
- safeAreaInsetShows the specified content above or below the modified view.
- swipeActionsAdds custom swipe actions to a row in a list.
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.
- GeometryProxyA proxy for access to the size and coordinate space (for anchor resolution) of the container view.