Repository navigation
1.3.3
增加通过侧滑返回手势 PopViewController 的回调
1.1. 通过添加通知的方式,全局监听侧滑返回完成
NotificationCenter.default.addObserver(forName: .XYNavGesturePopNotification, object: nil, queue: .main) { noti in
Toast.make("poped \(noti.object)")
}
1.2 设置 Block 回调的方式监听
XYNavigationController.addPanGestureEndCallback { popedViewController in
Toast.make("poped \(popedViewController)")
}