Instance Method
setPosition(_:ofDividerAt:animated:) setPosition:ofDividerAtIndex:animated: setPosition_ofDividerAtIndex_animated_
Set the position of a divider, possibly with an animation.
Declaration
func setPosition(_ position: CGFloat, ofDividerAt dividerIndex: Int, animated: Bool)Declaration
- (void) setPosition:(CGFloat) position ofDividerAtIndex:(NSInteger) dividerIndex animated:(BOOL) animated;Declaration
setPosition_ofDividerAtIndex_animated_(position: float, dividerIndex: int, animated: bool)Parameters
positionThe new position of the divider.
dividerIndexThe index of the divider to position.
animatedWhether the positioning should be animated.
Discussion
This method will use the split view’s animator proxy to animate by calling -setPosition:ofDividerAtIndex:.