Small example of how to write a page flip view for iOS in Swift