Skip to content

Close revealviewcontroller when tapped on the page #821

@mustafashaheen1

Description

@mustafashaheen1

I am using swift and xocde 12. And I am using TableViewController for the menu. I have tried following solutions but they didn't work.

`override func touchesBegan(_ touches: Set, with event: UIEvent?) {
if let touch = touches.first {
if self.revealViewController() != nil {
self.view.addGestureRecognizer(self.revealViewController().tapGestureRecognizer())
}
}

    super.touchesBegan(touches , with:event)
}`

`if self.revealViewController() != nil {

    self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
    self.view.addGestureRecognizer(self.revealViewController().tapGestureRecognizer())
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions