Alignment
public struct Alignment : RectBasedLayout
Alignment part of main layout.
-
Designed initializer
Declaration
Swift
public init(horizontal: Horizontal, vertical: Vertical)
Parameters
horizontal
Horizontal alignment behavior
vertical
Vertical 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
rect
Rect for layout
source
Available 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, Extensible
extension Layout.Alignment.Horizontal: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral
-
Undocumented
See moreDeclaration
Swift
public struct Vertical : RectBasedLayout, Extensible
extension Layout.Alignment.Vertical: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral