# `MDPSplitView`

*Class*

An `NSSplitView` subclass that provides a method to animate the position of a divider in a way that works with Auto Layout.

## Declaration

```swift
@MainActor class MDPSplitView
```

```objc
@interface MDPSplitView : NSSplitView
```

```python
class MDPSplitView(NSSplitView)
```

## Topics

### Instance Properties

- [`MDPSplitView.intendedCollapsibleSize`](/Core/GlyphsKit/MDPSplitView/intendedCollapsibleSize) — The collapsible subview size the owner actually wants (0 = collapsed, negative = unknown, which disables restoring). Set it whenever a size is chosen on purpose: state restoration, a user action, or an explicit API call. Divider drags update it automatically on mouse-up. Assumes the collapsible subview is the one at index 1 (after the divider).
- [`MDPSplitView.uncollapsedSize`](/Core/GlyphsKit/MDPSplitView/uncollapsedSize)

### Instance Methods

- [`MDPSplitView applyIntendedCollapsibleSize`](/Core/GlyphsKit/MDPSplitView/applyIntendedCollapsibleSize) — Repositions the divider to match intendedCollapsibleSize. Does nothing while the user drags, an animation runs, the size already matches, or the split view is (transiently) too small to honor it.
- [`MDPSplitView collapsibleSubview`](/Core/GlyphsKit/MDPSplitView/collapsibleSubview)
- [`MDPSplitView collapsibleSubviewCollapsed`](/Core/GlyphsKit/MDPSplitView/collapsibleSubviewCollapsed)
- [`MDPSplitView collapsibleSubviewSize`](/Core/GlyphsKit/MDPSplitView/collapsibleSubviewSize)
- [`MDPSplitView isAnimatingDividerAtIndex:`](/Core/GlyphsKit/MDPSplitView/isAnimatingDividerAtIndex:) — Whether the divider at the given index is currently being animated.
- [`MDPSplitView setPosition:ofDividerAtIndex:animated:`](/Core/GlyphsKit/MDPSplitView/setPosition:ofDividerAtIndex:animated:) — Set the position of a divider, possibly with an animation.
- [`MDPSplitView toggleCollapse:`](/Core/GlyphsKit/MDPSplitView/toggleCollapse:)
- [`MDPSplitView toggleSubview:dividerIndex:lastHeight:animationDuration:collapsesUpward:heightConstraint:completionHandler:`](/Core/GlyphsKit/MDPSplitView/toggleSubview:dividerIndex:lastHeight:animationDuration:collapsesUpward:heightConstraint:completionHandler:) — Helper method to toggle a (horizontally split) split view’s subview.
- [`MDPSplitView toggleSubview:dividerIndex:lastWidth:animationDuration:collapsesRightward:widthConstraint:completionHandler:`](/Core/GlyphsKit/MDPSplitView/toggleSubview:dividerIndex:lastWidth:animationDuration:collapsesRightward:widthConstraint:completionHandler:) — Helper method to toggle a (vertically split) split view’s subview.

## Relationships

### Inherits From

- `NSSplitView`

