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.

    Declaration

    Swift

    public func formLayout(rect: inout CGRect, in source: CGRect)

    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 more

    Declaration

    Swift

    public struct Horizontal : RectBasedLayout, Extensible
    extension Layout.Filling.Horizontal: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral
  • Undocumented

    See more

    Declaration

    Swift

    public struct Vertical : RectBasedLayout, Extensible
    extension Layout.Filling.Vertical: ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral