Layout

public protocol Layout

A Layout provides constraints to achieve a specific layout of views.

  • The constraints that must be added to a view to achieve a specific layout.

    Declaration

    Swift

    func constraints(in view: UIView, with insets: UIEdgeInsets) -> [NSLayoutConstraint]

    Parameters

    view

    The view that this layout should be placed in.

    insets

    The insets to add to the layout.

    Return Value

    An array of NSLayoutConstraint objects.