Animated menu for iOS
Clone or download
Latest commit b7ac623 Jan 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BNMenuViewController/Classes Minor Fixes Jan 7, 2019
Example Updated ReadMe Jan 7, 2019
BNMenuViewController.podspec Initial Commit Jan 7, 2019
LICENSE Initial commit Jan 3, 2019
README.md Updated ReadMe Jan 7, 2019
_Pods.xcodeproj Initial Commit Jan 7, 2019

README.md

BNMenuViewController

Version License Platform

Example

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

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

Author

Bijesh Nair, bijesh4@gmail.com

License

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