LayoutView

@objcMembers open class LayoutView: UIView

Abstract class for rendering a UIView backed by a Layout.

  • Layout object to render

    Declaration

    Swift

    public final var layout: Layout?
  • The delegate for handling popover requests that occur from this view

    Declaration

    Swift

    public weak var popoverDelegate: LayoutPopoverDelegate?
  • Refreshes the view based on the current state of self.layout.

    Note

    Subclasses should override this method. The default implementation does nothing.

    Declaration

    Swift

    open func refreshView(forFlags flags: LayoutFlag = LayoutFlag.All, animated: Bool = false)
  • Runs a code block, allowing it to be run immediately or via a preset animation.

    Declaration

    Swift

    open func runAnimatableCode(_ animated: Bool, code: @escaping () -> Void)
  • Runs a code block, allowing it to be run immediately or via a preset animation.

    Declaration

    Swift

    open func runAnimatableCode(
        _ animated: Bool, code: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)