An open API service indexing awesome lists of open source software.

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

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)


Vertical Horizontal

## 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).