Baseline
public struct Baseline : RectBasedConstraint, Extended
Set of constraints related to baseline of restrictive rect
-
Undocumented
Declaration
Swift
public typealias Conformed = RectBasedConstraint -
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
-
Common method for create entity of this type with base behavior.
Declaration
Swift
public static func build(_ base: RectBasedConstraint) -> BaselineParameters
baseEntity implements required behavior
Return Value
Initialized entity
-
Returns alignment constraint by baseline
Declaration
Swift
public static func align(of textPresenter: TextPresentedElement & LayoutElement) -> BaselineParameters
dependencyAnchor dependency for target rect
Return Value
Alignment constraint typed by Baseline
Baseline Structure Reference