A simple Swift sideMenu lib for iOS
#Requirements
iOS 8.0+
Swift 3.0+
#Getting Started
Using CocoaPods
1.Add the pod VTSideMenu
to your Podfile.
pod 'VTSideMenuSwift', '~> 1.0.0'
2.Run pod install
from Terminal, then open your app's .xcworkspace
file to launch Xcode.
3.#import UIViewController+SideMenu.h
wherever you want to use the API.
Manually from GitHub
1.Download the UIViewControllerSideMenu.swift
, VTSideMenuManager.swift
files in th Source directory
2.Add the files to your Xcode project.
3.you don't need to import any file if you use the api Manually with Swift #Example Usage
Example location
Check out the example project included in the repository. It contains a few demos of the API in use for various scenarios.
Usage
The way to create a SideMenu:
VTSideMenuManager.initSideMenu(sideMenu: SideMenuViewController(nibName: "SideMenuViewController", bundle: nil), width: 250)
The way to make side menu slide out:
self.sideMenuSlideOut()// called by a UIViewController instance
The way to make side menu slide int:
self.sideMenuSlideIn() // called by a UIViewController instance
#License MIT