SWRevealViewController from the right side on swift

前端 未结 6 2244
梦毁少年i
梦毁少年i 2021-02-20 05:28

I am using SWRevealViewController library to make a slide out menu in swift, but I am struggling to put this menu in the right side. I have seen on the library description this

6条回答
  •  渐次进展
    2021-02-20 05:59

    Swift 4.1

    private func setRightMenu(){
        btnMenuright.addTarget(revealViewController(), action: #selector(SWRevealViewController.rightRevealToggle(_:)), for: UIControlEvents.touchUpInside)
    
    }
    

    I tried to do this when you want the sw_right show up. this code It worked for me

提交回复
热议问题