I am a beginner, I hope my code can give more inspiration for beginners. If you find that the code has bug, or want to communicate with me, please contact: 1505482941@qq.com
Step 1:
var sliderMenu:WRSliderMemu!
override func viewDidLoad() {
super.viewDidLoad()
sliderMenu=WRSliderMemu(sender: self)
// Do any additional setup after loading the view, typically from a nib.
}
Step 2: Where you need:
sliderMenu.switchMenu()
You can customize the view on the left.Only need:
let leftView=UIView(frame: CGRect(x: 0, y: 0, width: 100, height: UIScreen.mainScreen().bounds.height))
leftView.backgroundColor=UIColor.greenColor()
sliderMenu.setContentView(leftView)
Thank you for checking my project.