Link Search Menu Expand Document

LayoutGuide

public class LayoutGuide 

Properties

identifier

A string used to identify the layout guide.

public var identifier: String = ""

layoutFrame

The layout guide’s frame in its owning view’s coordinate system.

public private(set) var layoutFrame: Rect = .zero

owningView

The view that owns the layout guide.

public weak var owningView: View?

bottomAnchor

A layout anchor representing the bottom edge of the layout guide’s frame.

public var bottomAnchor: LayoutYAxisAnchor 

centerXAnchor

A layout anchor representing the horizontal center of the layout guide’s frame.

public var centerXAnchor: LayoutXAxisAnchor 

centerYAnchor

A layout anchor representing the vertical center of the layout guide’s frame.

public var centerYAnchor: LayoutYAxisAnchor 

heightAnchor

A layout anchor representing the height of the layout guide’s frame.

public var heightAnchor: LayoutDimension 

leadingAnchor

A layout anchor representing the leading edge of the layout guide’s frame.

public var leadingAnchor: LayoutXAxisAnchor 

leftAnchor

A layout anchor representing the left edge of the layout guide’s frame.

public var leftAnchor: LayoutXAxisAnchor 

rightAnchor

A layout anchor representing the right edge of the layout guide’s frame.

public var rightAnchor: LayoutXAxisAnchor 

topAnchor

A layout anchor representing the top edge of teh layout guide’s frame.

public var topAnchor: LayoutYAxisAnchor 

trailingAnchor

A layout anchor representing the trailing edge of teh layout guide’s frame.

public var trailingAnchor: LayoutXAxisAnchor 

widthAnchor

A layout anchor representing the width of the layout guide’s frame.

public var widthAnchor: LayoutDimension