Adam Adam - 1 year ago 184
Swift Question

Swift Sidebar on right

Since i need to have the sidebar open on the right, how do i change it from the left to right side? the code i use is simple:

if revealViewController() != nil { = revealViewController()
Menubutton.action = #selector(SWRevealViewController.revealToggle(_:))


Also when the sidebar menu opens up it doesn't show the cells i have ( i've put both image and text on the different cells). But if i put a label in the Table view controller it shows the label when i open the sidebar menu.

leo leo
Answer Source

To reveal from the right side, change the selector to rightRevealToggle

Menubutton.action = #selector(SWRevealViewController.rightRevealToggle(_:))
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download