Swift Sidebar on right -
since need have sidebar open on right, how change left right side? code use simple:
if revealviewcontroller() != nil { menubutton.target = revealviewcontroller() menubutton.action = #selector(swrevealviewcontroller.revealtoggle(_:)) }
also when sidebar menu opens doesn't show cells have ( i've put both image , text on different cells). if put label in table view controller shows label when open sidebar menu.
to reveal right side, change selector rightrevealtoggle
menubutton.action = #selector(swrevealviewcontroller.rightrevealtoggle(_:))
Comments
Post a Comment