Swiftpack.co - twodayslate/SplitView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by twodayslate.
twodayslate/SplitView v2.0.3
Resizable Split View
⭐️ 17
🕓 3 years ago
iOS macOS
.package(url: "https://github.com/twodayslate/SplitView.git", from: "v2.0.3")

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.

GitHub

link
Stars: 17
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Version 2.0.3
4 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics