Skip to content

sinboun/WRSliderMemu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WRSliderMemu

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

image

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)

   

image

Thank you for checking my project.

Releases

No releases published

Packages

No packages published