Classes

The following classes are available globally.

LayoutGuide and placeholders

  • LayoutGuides will not show up in the view hierarchy, but may be used as layout element in an RectBasedConstraint and represent a rectangle in the layout engine. Create a LayoutGuide with -init Add to a view with UIView.add(layoutGuide:) If you use subclass LayoutGuide, that manages LayoutElement elements, than you should use layout(in: frame) method for apply layout, otherwise elements will be have wrong position.

    See more

    Declaration

    Swift

    open class LayoutGuide<Super> : LayoutElement, ElementInLayoutTime where Super : LayoutElement
    extension LayoutGuide: CustomDebugStringConvertible

LayoutBlock

LayoutConstraint

Placeholders

  • Base class for any view placeholder that need dynamic position and/or size. Used UIViewController pattern for loading target view, therefore will be very simply use him.

    See more

    Declaration

    Swift

    open class LayoutPlaceholder<Element, Super> : LayoutGuide<Super> where Element : LayoutElement, Super : LayoutElement
  • Base class for any layer placeholder that need dynamic position and/or size. Used UIViewController pattern for loading target view, therefore will be very simply use him.

    See more

    Declaration

    Swift

    open class LayerPlaceholder<Layer> : LayoutPlaceholder<Layer, CALayer> where Layer : CALayer
  • Base class for any view placeholder that need dynamic position and/or size. Used UIViewController pattern for loading target view, therefore will be very simply use him.

    See more

    Declaration

    Swift

ScrollLayoutGuide