Interactive animation between Swift 3 container controllers

I am creating an application that has a "main view controller" comparable to the navigation controller or TabBarController that contains the container.

I am switching between these child view controllers via UIButtons that are in the main view and are displayed above the container view to allow navigation.

I looked intensely and realized that Apple is doing some magic to allow transitions interactively (with their custom containers) that are not available in public APIs.

Does anyone have a solution to interactively navigate between child view controllers using the pan gesture from right to left (and vice versa)?

Thank!

+3


source to share


1 answer


Alternative solution



A solution was found to use a UIScrollView and enable both paging (for the bounce effect) and scrolling for a given direction. A useful example can be found here: https://github.com/jakespracher/Snapchat-Swipe-View
0


source







All Articles