Snapchat-like swipe navigation between views in Xcode 6 and Swift)

前端 未结 7 624
清酒与你
清酒与你 2021-01-30 11:47

I\'ve been trying to implement swipe navigation between View Controllers in my app using the Swipe Gesture Recognizer and embeded Navigation Controller, but it doesn\'t look eve

7条回答
  •  执笔经年
    2021-01-30 12:17

    I suggest using UIPageViewController and hiding the dots bar by deleting these methods:

    presentationCountForPageViewController
    presentationIndexForPageViewController
    

    Here is a good tutorial:

    https://www.youtube.com/watch?v=8bltsDG2ENQ

    Here is a great repo for this:

    https://github.com/goktugyil/EZSwipeController

提交回复
热议问题