项目作者: twodayslate

项目描述 :
Resizable Split View
高级语言: Swift
项目地址: git://github.com/twodayslate/SplitView.git
创建时间: 2019-08-23T16:34:47Z
项目社区:https://github.com/twodayslate/SplitView

开源协议:Other

下载


SplitView

Resizable Split View, inspired by Apple’s Split View for iPadOS and SplitKit


Vertical Horizontal

Requirements

Swift Package Manager (SPM)

  1. .Package(url: "https://github.com/twodayslate/SplitView.git", majorVersion: 1)

For the latest updates use:

  1. .Package(url: "https://github.com/twodayslate/SplitView.git", branch: "master")

CocoaPods

  1. pod 'SplitView'

For the latest updates use:

  1. 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.

  1. import SplitView
  2. //
  3. let mySplitView = SplitView()
  4. mySplitView.addSplitSubview(myFirstView)
  5. 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.