Skip to content

jollyjinx/SwiftUIPageFlip

Repository files navigation

SwiftUIPageFlip

This repository is an example project showing how to recreate the classic UIKit page-flip effect in SwiftUI.

The goal is not to ship a reusable component library, but to provide a practical reference for the animation technique, geometry setup, and interaction model needed to mimic the UIPageViewController-style paper flip behavior with a SwiftUI interface.

What this sample demonstrates

  • SwiftUI-native page-flip visuals inspired by UIKit page curl interactions
  • Gesture-driven motion and rotation/3D transform orchestration
  • Layered view composition for front/back page behavior
  • A focused implementation you can inspect and adapt to your own app

Getting Started

  1. Open the Xcode project:
    • SwiftUIPageFlip.xcodeproj
  2. Choose a simulator or device target.
  3. Build and run.
  4. Interact with the page view and observe the flip animation behavior.

Project intent

  • Keep the example minimal and educational.
  • Make the transition logic easy to experiment with in one place.
  • Serve as a starting point for more advanced effects, shadows, and interaction tuning.

License

This project is licensed under the MIT License. See LICENSE.

About

A implementation of the UIKit Pageflip effect in SwiftUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages