HorizontalAlignment
public struct HorizontalAlignment : Equatable, CustomStringConvertible
An alignment position along the horizontal axis.
-
Creates an instance with the given ID.
Note: each instance should have a unique ID.
Declaration
Swift
public init(_ id: AlignmentID.Type)
-
Declaration
Swift
public static func == (lhs: HorizontalAlignment, rhs: HorizontalAlignment) -> Bool
-
Declaration
Swift
public var description: String { get }
-
A guide marking the leading edge of the element.
Declaration
Swift
public static let leading: HorizontalAlignment
-
A guide marking the horizontal center of the element.
Declaration
Swift
public static let center: HorizontalAlignment
-
A guide marking the trailing edge of the element.
Declaration
Swift
public static let trailing: HorizontalAlignment