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
rectRect for layout
sourceAvailable space for layout
-
Designed initializer
Declaration
Swift
public init(horizontal: Horizontal, vertical: Vertical)Parameters
horizontalHorizontal filling behavior
verticalVertical filling behavior
-
Undocumented
Declaration
Swift
public static var equal: Filling { get } -
Undocumented
See moreDeclaration
Swift
public struct Horizontal : RectBasedLayout, Extensibleextension Layout.Filling.Horizontal: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral -
Undocumented
See moreDeclaration
Swift
public struct Vertical : RectBasedLayout, Extensibleextension Layout.Filling.Vertical: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral
Filling Structure Reference