Latest 0.1.2
Homepage https://github.com/alfian0/SlideOutMenu
License MIT
Platforms ios 8.0
Authors

How to use

  1. Add pod 'SlideOutMenu' on podfile
    pod 'SlideOutMenu'
  2. Import SlideOutMenu
    import SlideOutMenu
  3. Inherit ContainerController on class
    class RootViewController: ContainerController {
      ...
    }
  4. Create CenterView class

    import UIKit
    import SlideOutMenu
    
    class CenterView: UIViewController, ICenterViewController {
      var delegate: ISlideOutMenuDelegate!
    
      override func viewDidLoad() {
        super.viewDidLoad()
    
      }
    }
  5. Implement ISlideOutMenu interface

    extension RootViewController: ISlideOutMenu {
      func setCenterViewController() -> ICenterViewController {
        return CenterView()
      }
    
      func setLeftViewController() -> UIViewController? {
        return UIViewController()
      }
    
      func setRightViewController() -> UIViewController? {
        return nil
      }
    }
  6. Activate with delegate

    override func viewDidLoad() {
        super.viewDidLoad()
    
        self.delegate = self
    }

Latest podspec

{
    "name": "SlideOutMenu",
    "version": "0.1.2",
    "summary": "This simple Slide Out Menu.",
    "description": "This simple Slide Out Menu implementation.",
    "homepage": "https://github.com/alfian0/SlideOutMenu",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alfiansyah": "[email protected]"
    },
    "source": {
        "git": "https://github.com/alfian0/SlideOutMenu.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SlideOutMenu/Base/*.swift",
    "pushed_with_swift_version": "2.3"
}

Pin It on Pinterest

Share This