Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.56 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.56 KB

BNMenuViewController

Version License Platform

Alt text

Installation

BNMenuViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BNMenuViewController'

Implementation

let modalController = BNMenuViewController()
modalController.modalPresentationStyle = .overCurrentContext
modalController.delegate = self
modalController.arrayList = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6"]
modalController.arrayIcons = ["1", "2", "3", "4", "5", "6"]
modalController.iconSize = CGSize(width: 45, height: 45)
modalController.itemTextColor = .white
modalController.itemTextFont = UIFont(name: "Baskerville-SemiBoldItalic", size: 20)!
present(modalController, animated: false, completion: nil)

Make sure you set modalPresentationStyle as overCurrentContext

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Bijesh Nair, [email protected]

License

BNMenuViewController is available under the MIT license. See the LICENSE file for more info.