LayoutAnchors
public struct LayoutAnchors
Undocumented
-
Undocumented
Declaration
Swift
public var width: LayoutAnchor<DimensionLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var height: LayoutAnchor<DimensionLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var left: LayoutAnchor<XLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var right: LayoutAnchor<XLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var top: LayoutAnchor<YLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var bottom: LayoutAnchor<YLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var centerX: LayoutAnchor<XLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var centerY: LayoutAnchor<YLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var firstBaseline: LayoutAnchor<YLayoutAnchor> { get }
-
Undocumented
Declaration
Swift
public var edges: LayoutAnchorEdges { get }
-
Undocumented
Declaration
Swift
public var size: LayoutAnchorSize { get }
-
Removes all constraints that are connecting this layout anchor list to another layout anchor list.
Declaration
Swift
public func removeConstraintsConnecting(to other: LayoutAnchors)
-
Registers new constraints along the existing constraints of this anchors’ container based on the results of a given closure.
Passing
updateAreaIntoConstraintsMask
astrue
updates the value ofareaIntoConstraintsMask
of this layout anchor’s view to allow constraints to affect the view correctly.Declaration
Swift
@discardableResult func makeConstraints( updateAreaIntoConstraintsMask: Bool = true, @LayoutResultBuilder _ builder: (LayoutAnchors) -> LayoutConstraintDefinitions ) -> [LayoutConstraint]
-
Removes all constraints of this anchors’ container and creates new constraints based on the results of a given closure.
Passing
updateAreaIntoConstraintsMask
astrue
updates the value ofareaIntoConstraintsMask
of this layout anchor’s view to allow constraints to affect the view correctly.Declaration
Swift
@discardableResult func remakeConstraints( updateAreaIntoConstraintsMask: Bool = true, @LayoutResultBuilder _ builder: (LayoutAnchors) -> LayoutConstraintDefinitions ) -> [LayoutConstraint]
-
Updates the constraints of this anchors’ container based on the results of a given closure. Constraints are chosen to be updated based on the layout anchors referenced, and the comparison operator.
Note: This method assumes the referenced constraints already exist. If one or more of the constraints does not exist, the method traps with a
fatalError
.Passing
updateAreaIntoConstraintsMask
astrue
updates the value ofareaIntoConstraintsMask
of this layout anchor’s view to allow constraints to affect the view correctly.Declaration
Swift
@discardableResult func updateConstraints( @LayoutResultBuilder _ builder: (LayoutAnchors) -> LayoutConstraintDefinitions ) -> [LayoutConstraint]
-
Undocumented
Declaration
Swift
@discardableResult public func left( of other: LayoutAnchorsContainer, offset: Double = 0, priority: LayoutPriority = .required ) -> LayoutConstraintDefinition
-
Undocumented
Declaration
Swift
@discardableResult public func right( of other: LayoutAnchorsContainer, offset: Double = 0, priority: LayoutPriority = .required ) -> LayoutConstraintDefinition
-
Undocumented
Declaration
Swift
@discardableResult public func over( _ other: LayoutAnchorsContainer, offset: Double = 0, priority: LayoutPriority = .required ) -> LayoutConstraintDefinition
-
Undocumented
Declaration
Swift
@discardableResult public func under( _ other: LayoutAnchorsContainer, offset: Double = 0, priority: LayoutPriority = .required ) -> LayoutConstraintDefinition