A growing collection of polished SwiftUI animations, ready to drop into your iOS apps.
This repository contains 25+ custom SwiftUI animations and Metal shaders - from loaders and toggles to interactive UI components and GPU-powered visual effects - all built entirely with SwiftUI. Each animation lives in its own self-contained folder with all the source code you need to integrate it into your project.
- Requirements
- Getting Started
- Animations Gallery
- Project Structure
- How to Run
- Contributing
- Contributors
- Author
- License
| Dependency | Version |
|---|---|
| iOS | 17.0+ |
| Xcode | 16.0+ |
| Swift | 5.0+ |
# Clone the repository
git clone https://github.com/Shubham0812/SwiftUI-Animations.git
# Open in Xcode
cd SwiftUI-Animations
open SwiftUI-Animations.xcodeprojSelect a simulator and hit Run - each animation is accessible from the home screen.
SwiftUI-Animations/
βββ Code/
β βββ Common/
β β βββ Animations/ # Each animation in its own folder
β β β βββ 3dLoader/
β β β βββ AddView/
β β β βββ Auto Scroller/
β β β βββ Bank Card/
β β β βββ BookLoader/
β β β βββ Cards Swap/
β β β βββ Cart/
β β β βββ ChatBar/
β β β βββ CircleLoader/
β β β βββ DownloadButton/
β β β βββ GithubLoader/
β β β βββ InfinityLoader/
β β β βββ LightSwitch/
β β β βββ Like/
β β β βββ Loader/
β β β βββ Loader2/
β β β βββ LoginView/
β β β βββ Octocat-Wink/
β β β βββ PillLoader/
β β β βββ Scratch to Reveal/
β β β βββ SpinningLoader/
β β β βββ SubmitView/
β β β βββ Text Bouncing/
β β β βββ TextSwirl/
β β β βββ TriangleLoader/
β β β βββ Wifi/
β β β βββ YinYang-Toggle/
β β βββ Shaders/ # Metal shader effects
β β βββ Burn/ # Burn transition effect (.metal + .swift)
β βββ Features/
β β βββ App/ # Root app views & coordinator
β β βββ Home/ # Home screen
β β β βββ Models/ # Animation item models
β β β βββ Views/ # Home views & support views
β β βββ Shaders/ # Shader showcase views
β β βββ Support Views/ # Shared feature UI components
β βββ Navigation/ # Router & navigation logic
β βββ Services/ # Haptic feedback manager
β βββ Utils/ # Colors, fonts & helpers
βββ Assets/
β βββ Fonts/ # ClashGrotesk custom font family
βββ GIFs/ # Animation preview GIFs
βββ SwiftUI-Animations.xcodeproj
-
Clone & open
git clone https://github.com/Shubham0812/SwiftUI-Animations.git cd SwiftUI-Animations open SwiftUI-Animations.xcodeproj -
Select a target - choose any iOS simulator (iPhone 14 or later recommended) from the device picker in the Xcode toolbar.
-
Build & run - press β R or click the Run button. The app launches on the home screen listing all available animations.
-
Browse an animation - tap any card to open it full-screen and interact with it directly.
-
Jump to the source - each animation lives in its own self-contained folder under
Code/Common/Animations/. Shader effects are underCode/Common/Shaders/. Open any folder in Xcode's Project Navigator to read or copy the code.
Tip: Every view file includes a
PreviewProvider/#Preview, so you can also run individual animations directly in Xcode Previews without launching the full app - just open the file and press β β₯ P.
Contributions are welcome! Whether it's a new animation, a bug fix, or an improvement to an existing one, feel free to open a pull request.
Please read the Contributing Guide for detailed instructions on how to get started, code style guidelines, and the pull request process.
| Resource | Description |
|---|---|
| Contributing Guide | How to contribute, code style, PR process |
| Code of Conduct | Community standards and expectations |
| Security Policy | How to report vulnerabilities |
| Changelog | History of changes and new animations |
Thanks to everyone who has helped make this project better!
| Avatar | Name | GitHub |
|---|---|---|
![]() |
Shubham Kumar Singh | @Shubham0812 |
![]() |
iliya | @12ya |
Want to see your name here? Check out the Contributing Guide and the full Contributors List.
Shubham Kumar Singh
iOS Developer | SwiftUI / UIKit | Indie Developer | Open Source Contributor
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
You are free to use, modify, and distribute this project in your own apps - commercial or personal.
If you found this project helpful or learned something from the source code, please consider:
Give it a Star - It helps others discover the project!
Share it with your friends and colleagues - Let's grow the SwiftUI community together!
Made with SwiftUI and lots of creativity






























