huggingPriority(for:)
Returns the Auto Layout priority for the stack view to minimize its size to fit its contained views as closely as possible, for a specified user interface axis.
Declaration
func huggingPriority(for orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.PriorityParameters
- orientation:
The user interface axis (horizontal or vertical) whose hugging priority you want to get from the stack view. Valid values are those in the Nsuserinterfacelayoutorientation enumeration.
Return Value
The Auto Layout priority for the stack view to minimize its size.