Created
February 22, 2020 06:11
-
-
Save zentrope/b3b3591e2eded26c86ae9fbe5e30f6fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func splitView(_ splitView: NSSplitView, additionalEffectiveRectOfDividerAt dividerIndex: Int) -> NSRect { | |
super.splitView(splitView, additionalEffectiveRectOfDividerAt: dividerIndex) | |
assert(splitViewItems.count == 2) | |
if splitViewItems.count != 2 { return .zero } | |
if !splitViewItems[1].isCollapsed { return .zero } | |
return NSMakeRect(splitView.bounds.maxX-6, 0, 6, splitView.bounds.height) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment