Bonsai
Bonsai makes iOS Popup View Using Separate View Controller.
Features
- [x] Makes view controller appear as
- [x] Popup alert (no dismiss on tap outside)
- [x] Notification alert (auto dismiss after delay)
- [x] Side menu (drawer)
- [x] Transition animation
- [x] Slide In from left, right, top and bottom
- [x] Bubble pop from an initial frame or a view
- [x] Blur effect on background
- [x] light, dark, regular, prominent
- [x] Supports Storyboard and Code
- [x] Supports landscape and portrait orientation
- [x] Created with Swift compatible with Objective-C
- [x] Preserves Safe Area and Auto Layout constraints
Installation with CocoaPods
BonsaiController is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Install Manually
Drag the ~/BonsaiController
directory anywhere in your project.
How to use
Add (copy paste) BonsaiControllerDelegate
extension to your view controller
How to present the view controller
From Code:
From Storyboard:
Customize
Auto dismiss after delay
Customizable properties (Default values)
Custom transition animation
If you want to create your own transition animation, implement this protocol in your viewController
Usage In Objective-C
Add (copy paste) BonsaiControllerDelegate
extension to your view controller
How to present the view controller(obj-c)
From Code:
From Storyboard:
Example
An example project is included with this repo. To run the example project, clone the repo, and run pod install
from the Example directory first.
Minimum Requirements
- Xcode 9
- iOS 9.3