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

# maxPossiblePositionOfDivider(at:)

Returns the maximum possible position of the divider at the specified index.

## Declaration

```swift
func maxPossiblePositionOfDivider(at dividerIndex: Int) -> CGFloat
```

## Parameters

- `dividerIndex`: The index of the divider.

## Return Value

Return Value A CGFloat that specifies the maximum possible position of the divider.

## Discussion

Discussion The position is possible because the bounds of the split view and the current position of other dividers dictate it. Allowable positions result from letting the delegate apply constraints to the possible positions. You can invoke this method to determine the range of values that you can pass to setPosition(_:ofDividerAt:). You can also invoke it from delegate methods like splitView(_:constrainSplitPosition:ofSubviewAt:) to implement relatively complex behaviors that depend on the current state of the split view. The result of invoking this method when you haven’t invoked adjustSubviews(), and the subview frames are invalid, is undefined.

## See Also

### Constraining Split Position

- [minPossiblePositionOfDivider(at:)](appkit/nssplitview/minpossiblepositionofdivider(at:).md)
- [setPosition(_:ofDividerAt:)](appkit/nssplitview/setposition(_:ofdividerat:).md)
