Filling
public struct Filling : RectBasedLayout
Filling part of main layout
-
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
-
Designed initializer
Declaration
Swift
public init(horizontal: Horizontal, vertical: Vertical)
Parameters
horizontal
Horizontal filling behavior
vertical
Vertical filling behavior
-
Undocumented
Declaration
Swift
public static var equal: Filling { get }
-
Undocumented
See moreDeclaration
Swift
public struct Horizontal : RectBasedLayout, Extensible
extension Layout.Filling.Horizontal: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral
-
Undocumented
See moreDeclaration
Swift
public struct Vertical : RectBasedLayout, Extensible
extension Layout.Filling.Vertical: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral