Skip to content

twodayslate/SplitView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

618a654 · Jun 23, 2020

History

45 Commits
Jun 23, 2020
Oct 10, 2019
Mar 6, 2020
Mar 13, 2020
Oct 10, 2019
Oct 10, 2019
Aug 23, 2019
Aug 23, 2019
Aug 27, 2019
Mar 6, 2020
Mar 6, 2020
Oct 10, 2019
Mar 6, 2020
Sep 4, 2019

Repository files navigation

SplitView

Resizable Split View, inspired by Apple's Split View for iPadOS and 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.