iOS side menu
- Xcode 6
- iOS 9
The best and easiest way is to use CocoaPods.
pod 'LFSideViewController', '~> 2.0.0'
import UIKit
class RootViewController: LFSideViewController {
override func viewDidLoad() {
super.viewDidLoad()
let storyboard = UIStoryboard(name: "Main", bundle: nil)
self.contentViewController = storyboard.instantiateViewController(withIdentifier: "NavigationViewController")
self.rightViewController = storyboard.instantiateViewController(withIdentifier: "RightViewController")
self.leftViewController = storyboard.instantiateViewController(withIdentifier: "LeftViewController")
if let sideViewController = self.sideViewController() {
sideViewController.delegate = self
}
}
}
Check out the example project for more details.
LFSideViewController is licensed under the MIT License.