[ad_1]
I’m seeking to have an interactive push view controller. So if the consumer pans from the fitting fringe of the display screen, it can pop to the following view controller. I’ve discovered this CocoaPods: https://github.com/rickytan/RTInteractivePush, however it’s written in Goal-C, so I’m not sure methods to use it. Alone I’ve been in a position to give you a pan gesture that pushes a view, nevertheless it’s not interactive:
swipeGesture = UIPanGestureRecognizer(goal: self, motion:#selector(swiped(_:)))
swipeGesture.delegate = self
view.addGestureRecognizer(swipeGesture)
@objc func swiped(_ gestureRecognizer: UIPanGestureRecognizer) {
let newView = View()
self.navigationController?.pushViewController(newView, animated: true)
}
Any assist can be vastly appreciated!
[ad_2]
