# `MDPSplitView setPosition:ofDividerAtIndex:animated:`

*Instance Method*

Set the position of a divider, possibly with an animation.

## Declaration

```swift
func setPosition(_ position: CGFloat, ofDividerAt dividerIndex: Int, animated: Bool)
```

```objc
- (void) setPosition:(CGFloat) position ofDividerAtIndex:(NSInteger) dividerIndex animated:(BOOL) animated;
```

```python
setPosition_ofDividerAtIndex_animated_(position: float, dividerIndex: int, animated: bool)
```

## Parameters

- `position` — The new position of the divider.
- `dividerIndex` — The index of the divider to position.
- `animated` — Whether the positioning should be animated.

## Discussion

This method will use the split view’s animator proxy to animate by calling `-setPosition:ofDividerAtIndex:`.

