https://github.com/twodayslate/splitview
Resizable Split View
https://github.com/twodayslate/splitview
resizable splitview swift uikit
Last synced: 14 days ago
JSON representation
Resizable Split View
- Host: GitHub
- URL: https://github.com/twodayslate/splitview
- Owner: twodayslate
- License: other
- Created: 2019-08-23T16:34:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T19:56:40.000Z (almost 5 years ago)
- Last Synced: 2025-05-08T03:13:05.147Z (14 days ago)
- Topics: resizable, splitview, swift, uikit
- Language: Swift
- Homepage: https://twodayslate.github.io/SplitView/
- Size: 1.29 MB
- Stars: 18
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SplitView
Resizable Split View, inspired by [Apple's Split View](https://support.apple.com/en-us/HT207582#split) for iPadOS and [SplitKit](https://github.com/macteo/SplitKit)
![]()
![]()
## Requirements
### Swift Package Manager (SPM)
```
.Package(url: "https://github.com/twodayslate/SplitView.git", majorVersion: 1)
```For the latest updates use:
```
.Package(url: "https://github.com/twodayslate/SplitView.git", branch: "master")
```### CocoaPods
```
pod 'SplitView'
```For the latest updates use:
```
pod 'SplitView', :git => 'https://github.com/twodayslate/SplitView.git'
```## Usage
Using `SplitView` is easy! Simply create a `SplitView` and add your views to it - just like a `UIStackView`.
```
import SplitView
//
let mySplitView = SplitView()
mySplitView.addSplitSubview(myFirstView)
mySplitView.addSplitSubview(mySecondView)
```There are certain customizations available including minimum sizing and snapping. Custom handles are also supported.
Be sure to checkout the [example App](https://github.com/twodayslate/SplitView/tree/master/app).