---
title: "clippingResistancePriority(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsstackview/clippingresistancepriority(for:)"
---

# clippingResistancePriority(for:)

Returns the Auto Layout priority for resisting clipping of views in the stack view when Auto Layout attempts to reduce the stack view’s size.

## Declaration

```swift
func clippingResistancePriority(for orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
```

## Parameters

- `orientation`: The stack view layout direction to which the clipping resistance priority applies.

## Return Value

Return Value A layout constraint priority that identifies the clipping resistance for the stack view.

## Discussion

Discussion For an explanation of clipping resistance and how to use it for a stack view, see the setClippingResistancePriority(_:for:) method.

## See Also

### Related Documentation

- [orientation](appkit/nsstackview/orientation.md)
- [setClippingResistancePriority(_:for:)](appkit/nsstackview/setclippingresistancepriority(_:for:).md)

### Inspecting a Stack View

- [views](appkit/nsstackview/views.md)
- [views(in:)](appkit/nsstackview/views(in:).md)
- [detachedViews](appkit/nsstackview/detachedviews.md)
- [huggingPriority(for:)](appkit/nsstackview/huggingpriority(for:).md)
