---
title: "splitView(_:shouldAdjustSizeOfSubview:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssplitviewdelegate/splitview(_:shouldadjustsizeofsubview:)"
---

# splitView(_:shouldAdjustSizeOfSubview:)

Allows the delegate to specify whether to resize the subview.

## Declaration

```swift
@MainActor optional func splitView(_ splitView: NSSplitView, shouldAdjustSizeOfSubview view: NSView) -> Bool
```

## Parameters

- `splitView`: The split view that sends the message.
- `view`: The subview to resize.

## Return Value

Return Value If adjustSubviews() can change the size of the subview, true; otherwise, false. By returning false, you lock the size of the split view subview while the split view resizes.

## Discussion

Discussion important: If your split view uses Auto Layout to size its subviews, don’t implement this method. Regardless of the value that this method returns, adjustSubviews() may change the origin of the subview. Nonresizable subviews may resize to prevent an invalid subview layout. If a split view has no delegate, or if its delegate doesn’t respond to this message, the split view behaves as if this method returns true.

## See Also

### Adjusting Subviews Manually

- [splitView(_:constrainMinCoordinate:ofSubviewAt:)](appkit/nssplitviewdelegate/splitview(_:constrainmincoordinate:ofsubviewat:).md)
- [splitView(_:constrainMaxCoordinate:ofSubviewAt:)](appkit/nssplitviewdelegate/splitview(_:constrainmaxcoordinate:ofsubviewat:).md)
- [splitView(_:resizeSubviewsWithOldSize:)](appkit/nssplitviewdelegate/splitview(_:resizesubviewswitholdsize:).md)
