I am trying to implement the view controller transition of a UIScrollview between view controllers, both horizontally and vertically. I don't want to use a scrollview or a UIPageviewcontroller, I just want that transition both horizontally and vertically. Is there a way to use UIPanGestureRecognizer and UIViewControllerAnimatedTransitioning to do this?
Asked
Active
Viewed 113 times
0
-
Unless UIPageViewController can not match your goal, you build yourself. – childrenOurFuture Jul 07 '16 at 02:08
-
Is there an existing library or code for a reference on how to build this type of transition, particularly with a uipangesturerecognizer? – Adil Ansari Jul 07 '16 at 08:54
1 Answers
0
You can probably register a UISwipeGesture
on your current view and call:
UIView.transition(from: <current view>, to: <destination view>, duration: <#T##TimeInterval#>, options: <#T##UIViewAnimationOptions#>, completion: <#T##((Bool) -> Void)?##((Bool) -> Void)?##(Bool) -> Void#>)
}

Jatin Garg
- 41
- 1
- 4