HorizontalEdge

An edge on the horizontal axis.

EnumerationiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+HorizontalEdge in SwiftUI

Declaration

React
type HorizontalEdge = 'leading' | 'trailing' | { rawValue: number; };
Swift
@frozen enum HorizontalEdge

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

Type properties

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

See also

More in Layout.