Wednesday, October 7, 2026
HomeiOS Developmentios - Interactive push view controller

ios – Interactive push view controller

[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]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments