BaselineLayoutConstraint
public struct BaselineLayoutConstraint
Related constraint for base line.
-
Undocumented
Declaration
Swift
public typealias Item = LayoutElement & TextPresentedElement -
Undocumented
Declaration
Swift
public init(element: Item, constraints: [RectBasedConstraint])
-
Flag, defines that constraint may be used for layout
Declaration
Swift
public var isActive: Bool { get } -
Flag that constraint not required other calculations. It`s true for size-based constraints.
Declaration
Swift
public var isIndependent: Bool { get } -
LayoutElementobject associated with this constraintDeclaration
Swift
public func layoutElement(is object: AnyObject) -> Bool -
Return rectangle for constrain source rect
Declaration
Swift
public func constrainRect(for currentSpace: CGRect, in coordinateSpace: LayoutElement) -> CGRectParameters
currentSpaceSource rect in current state
coordinateSpaceWorking coordinate space
Return Value
Rect for constrain
-
Main function for constrain source space by other rect
Declaration
Swift
public func formConstrain(sourceRect: inout CGRect, by rect: CGRect)Parameters
sourceRectSource space
rectRect for constrain
-
Converts rect from constraint coordinate space to destination coordinate space if needed.
Declaration
Swift
public func convert(rectIfNeeded rect: CGRect, to coordinateSpace: LayoutElement) -> CGRectParameters
rectInitial rect
coordinateSpaceDestination coordinate space
Return Value
Converted rect
BaselineLayoutConstraint Structure Reference