---
title: "holdingPriorityForSubview(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssplitview/holdingpriorityforsubview(at:)"
---

# holdingPriorityForSubview(at:)

Returns the priority of the subview’s width or height when resizing.

## Declaration

```swift
func holdingPriorityForSubview(at subviewIndex: Int) -> NSLayoutConstraint.Priority
```

## Parameters

- `subviewIndex`: The index of the subview.

## Return Value

Return Value The layout priority of the subview at the index.

## Discussion

Discussion The priority is the manner that the split view subviews use to maintain their width (for a vertical split view) or height (for a horizontal split view). During a split view resize, subviews with higher priorities maintain their sizes before subviews with lower priorities. The subview with the lowest priority is the first to gain additional thickness if the split view grows or shrinks.

## See Also

### Managing Subviews

- [adjustSubviews()](appkit/nssplitview/adjustsubviews().md)
- [isSubviewCollapsed(_:)](appkit/nssplitview/issubviewcollapsed(_:).md)
- [setHoldingPriority(_:forSubviewAt:)](appkit/nssplitview/setholdingpriority(_:forsubviewat:).md)
