forBaselineLayout()
Returns a view used to satisfy baseline constraints.
Declaration
func forBaselineLayout() -> UIViewReturn Value
The view the constraint system should use to satisfy baseline constraints
Discussion
When you make a constraint to a view’s NSLayoutAttributeBaseline attribute, Auto Layout uses the baseline of the view returned by this method. If that view does not have a baseline, Auto Layout uses the view’s bottom edge.
Override this method to return a text-based subview (for example, UILabel or a nonscrolling UITextView). If you override this method, the returned view must be a subview of the receiver. The default implementation returns the receiving view.
See Also
Deprecated methods
beginAnimations(_:context:)commitAnimations()setAnimationStart(_:)setAnimationsEnabled(_:)setAnimationDelegate(_:)setAnimationWillStart(_:)setAnimationDidStop(_:)setAnimationDuration(_:)setAnimationDelay(_:)setAnimationCurve(_:)setAnimationRepeatCount(_:)setAnimationRepeatAutoreverses(_:)setAnimationBeginsFromCurrentState(_:)setAnimationTransition(_:for:cache:)areAnimationsEnabled