Examples

Requirements

iOS 10.0+

Xcode 11+

Swift 5.2+

Installation

HandyViewController is distributed with Swift Package Manager which is the only official distribution tool by Apple. You can add HandyViewController to your project from Xcode's File > Swift Packages > Add Package Dependency menu with its github URL:

https://github.com/mobven/HandyViewController.git

Usage

Basically, to achieve HandyViewController presentation, you set transitioningDelegate of your view controller to HandyTransitioningDelegate. There are two options while initializing HandyTransitioningDelegate:

Content size

Presented view controller must have necessary constraints (from top to bottom) to allow HandyViewController to calculate its height.

StackView usage

During usage we've faced content size calculation issues with presented view controllers containing UIStackView with fill distribution and alignment attributes. As a workaround to this issue HandyViewController adds an empty footer view to your stack view, which is invisible. You can achieve this by calling: