How to FULLY re-enable back/left swipe gesture in UINavigationController after unwind from popped view?

可紊 提交于 2019-12-08 08:16:52

问题


After unwind from a popped view, my back/left swipe gesture is gone. I fixed by:

override func viewDidLoad() {
  super.viewDidLoad()
  reenableSwipeBack()
}

func reenableSwipeBack() {
  self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true;
  self.navigationController?.interactivePopGestureRecognizer?.delegate = nil;
}

My swipe gesture is back but without animation (Shown here (Giphy)). How can I get the gesture animation back?

来源:https://stackoverflow.com/questions/45268086/how-to-fully-re-enable-back-left-swipe-gesture-in-uinavigationcontroller-after-u

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!