How to do it...

  1. Let's create a new Xcode project to see this in action. Create a new project with template Page-Based Application.
  2. Try to run the project; you will see something like this:
  1. You will see a page view controller that displays a white subview and a month title. You can navigate between the pages using swipe and curl animation.
  2. What will you do if this view controller is the subview of other view controllers in your app, or it's a reusable component? We will reuse it using container view.
  3. Let's create a new view controller with a green background. Drag the arrow from the RootViewController to the new view controller to make it ...

Get iOS Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.