Contents

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.Priority

Parameters

  • 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.

See Also

Related Documentation

Inspecting a Stack View