Alignment
public struct Alignment : RectBasedLayout
Alignment part of main layout.
-
Designed initializer
Declaration
Swift
public init(horizontal: Horizontal, vertical: Vertical)Parameters
horizontalHorizontal alignment behavior
verticalVertical alignment behavior
-
Performing layout of given rect inside available rect. Attention: Apply layout for view frame using code as layout(rect: &view.frame,…) has side effect and called setFrame method on view.
Parameters
rectRect for layout
sourceAvailable space for layout
-
left-top alignment
Declaration
Swift
public static var equal: Alignment { get } -
Undocumented
Declaration
Swift
public static var center: Alignment { get } -
Undocumented
See moreDeclaration
Swift
public struct Horizontal : RectBasedLayout, Extensibleextension Layout.Alignment.Horizontal: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral -
Undocumented
See moreDeclaration
Swift
public struct Vertical : RectBasedLayout, Extensibleextension Layout.Alignment.Vertical: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral
Alignment Structure Reference