Domain Rating by Ahrefs39
Description
Bonsplit is a Swift library for macOS apps that adds a native tab bar with split-pane support to SwiftUI. It is for developers who want their app to have tabs that can be split horizontally or vertically, with each pane holding its own set of tabs. The library includes drag-and-drop reordering, keyboard navigation and animations that the author describes as running at 120 frames per second. You create tabs with optional icons and a dirty indicator to show unsaved changes, and you can target a specific pane or use the focused one. Tabs can be renamed, given a new icon, marked as modified or closed at any time, and the changes animate smoothly. The API is observable and configurable, with delegate methods for events such as tab creation, closing, selection and pane splitting, and it provides a configuration type. Panes can be split from code, optionally with a tab already in the new pane, and closed when no longer needed. The library is added through Swift Package Manager, and the reference documentation covers the controller, delegate, geometry types and configuration. It is made by @almonk and published on GitHub.…
Highlights
- Native macOS tab bar for SwiftUI
- Split panes horizontally or vertically
- Drag-and-drop tab reordering
- Observable, configurable API with delegates
- Added with Swift Package Manager
Ratings & Reviews
No ratings yet
Be the first to rate Bonsplit.
People also visit

swiftui-ui-patterns
Best practices and example-driven guidance for building SwiftUI views
Bonsplit FAQ
What is Bonsplit?
It is a Swift library that gives macOS apps a native tab bar with split-pane support, built for SwiftUI.
How do I add it to my project?
Add it as a Swift Package using the URL https://github.com/almonk/bonsplit.git with version 1.1.1 or later.
Which platforms does it support?
It is for macOS apps built with SwiftUI.
How do I split a pane?
Panes are split in code, horizontally or vertically. You can also start the new pane with a tab already in it.
Does it handle unsaved changes?
Yes. Tabs can have a dirty indicator, and you can update a tab's state at any time with the change animating smoothly.
Where is the documentation?
The reference covers the controller, delegate, geometry types and configuration, and the project is on GitHub.
What are the best Bonsplit alternatives?
Popular alternatives to Bonsplit include Barik and ViewMonitor. See all Bonsplit alternatives



