UIScrollView can be set up to have paging with just a few lines of code.
Here's a basic example:
main.swift707 chars15 lines
This sets up a UIScrollView
with paging enabled and a content view that's three times as wide as the scroll view. It then adds three subviews to the content view, each one a third of the width of the content view and with a different background color (just to make it clear that they're separate pages).
If you run this code, you should be able to swipe left and right to page between the three subviews.
You can customize this to your specific needs by adjusting the number of pages and their contents.
gistlibby LogSnag