Popularity
2.1
Declining
Activity
0.0
Declining
76
4
9

Programming language: Swift
License: MIT License
Tags: UI     Transition    
Latest version: v1.0.2

SemiModalViewController alternatives and similar libraries

Based on the "Transition" category.
Alternatively, view SemiModalViewController alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of SemiModalViewController or a related project?

Add another 'Transition' Library

README

CocoaPods SPM license

UIViewController extension to present view / view controller as bottom-half modal.

Installation

CocoaPods

pod 'SemiModalViewController'

Swift Package Manager

dependencies: [
    .Package(url: "https://github.com/muyexi/SemiModalViewController.git", majorVersion: 0)
]

Usage

Present a view controller:

let options = [
    SemiModalOption.pushParentBack: true
]

let controller = UIViewController()

controller.view.height = 200
controller.view.backgroundColor = UIColor.redColor()

presentSemiViewController(controller, options: options, completion: {
    print("Completed!")
}, dismissBlock: {
    print("Dismissed!")
})

Or view:

let view = UIView(frame: UIScreen.mainScreen().bounds)
view.height = 300
view.backgroundColor = UIColor.redColor()

presentSemiView(view, options: options) {
    print("Completed!")
}

Dismiss a presented view / view controller:

dismissSemiModalView()

Default options:

SemiModalOption.traverseParentHierarchy : true,
SemiModalOption.pushParentBack          : false,
SemiModalOption.animationDuration       : 0.5,
SemiModalOption.parentAlpha             : 0.5,
SemiModalOption.parentScale             : 0.8,
SemiModalOption.shadowOpacity           : 0.5,
SemiModalOption.transitionStyle         : .slideUp,
SemiModalOption.disableCancel           : true

Credits

SemiModalViewController is based on KNSemiModalViewController.

License

SemiModalViewController is released under the MIT license. See LICENSE for details.


*Note that all licence references and agreements mentioned in the SemiModalViewController README section above are relevant to that project's source code only.