问题描述:

I created a custom backBarButton in my ViewController. But when I use the swipe right gesture, then it is not popping that view controller.

I tried enabling

self.navigationController?.interactivePopGestureRecognizer?.enabled = true

But its not working.

Anybody knows how to achieve similar effect as iOS default interactivePopGestureRecognizer even if using custom backBarButtonItem?(in swift)

相关阅读:
Top