Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

luisfcofv/LFSideViewController

Repository files navigation

LFSideViewController

License MIT Badge w/ Version Badge w/ Platform Carthage compatible

iOS side menu

Demo

Requirements

  • Xcode 6
  • iOS 9

Installation

The best and easiest way is to use CocoaPods.

pod 'LFSideViewController', '~> 2.0.0'

Usage

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.

License

LFSideViewController is licensed under the MIT License.