Snapchat-like swipe navigation between views in Xc

2020-05-14 06:27发布

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 even close to the Snapchat's nav.

What would be the most efficient and appropiate way to implement such functionality?

I'm quite a newbie to Swift and programming really, and I would appreciate every helpful comment.

7条回答
不美不萌又怎样
2楼-- · 2020-05-14 07:33

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

查看更多
登录 后发表回答