I tried to implemented the SWRevealViewController to my project, but I want to do it with a button and all documentations I found are for barbuttonitems that have this code:
detailButton.target = revealViewController()
detailButton.action = #selector(SWRevealViewController.revealToggle(_:))
How can I do it with a simple button?