Classes
The following classes are available globally.
-
LayoutGuides will not show up in the view hierarchy, but may be used as layout element in an
See moreRectBasedConstraint
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 managesLayoutElement
elements, than you should uselayout(in: frame)
method for apply layout, otherwise elements will be have wrong position.Declaration
Swift
open class LayoutGuide<Super> : LayoutElement, ElementInLayoutTime where Super : LayoutElement
extension LayoutGuide: CustomDebugStringConvertible
-
Makes full layout for
See moreLayoutElement
entity. Contains main layout, related anchor constrains and element for layout.Declaration
Swift
public final class LayoutBlock<Item> : LayoutBlockProtocol where Item : LayoutElement
-
Layout constraint that creates possibility to change active state.
See moreDeclaration
Swift
public class MutableLayoutConstraint : LayoutConstraintProtocol
-
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 moreDeclaration
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 moreDeclaration
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 moreDeclaration
Swift
-
Layout guide that provides interface for scrolling content
See moreDeclaration
Swift
open class ScrollLayoutGuide<Super> : LayoutGuide<Super> where Super : LayoutElement
-
Undocumented
See moreDeclaration
Swift
public class ScrollAnimationDeceleration<Item> : ScrollAnimation where Item : LayoutElement
-
StackLayoutGuide layout guide for arranging items in ordered list. It’s analogue UIStackView. For configure layout parameters use property
See morescheme
. Attention: before addition items to stack, need add stack layout guide to super layout element usingfunc add(layoutGuide:)
method.Declaration
Swift
open class StackLayoutGuide<Parent> : LayoutGuide<Parent>, AdjustableLayoutElement, AdaptiveLayoutElement where Parent : LayoutElementsContainer