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.
- 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
- Open the Xcode project:
SwiftUIPageFlip.xcodeproj
- Choose a simulator or device target.
- Build and run.
- Interact with the page view and observe the flip animation behavior.
- 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.
This project is licensed under the MIT License. See LICENSE.