- August 12, 2025
- Mins Read
This component implements transition animation to crumble view-controller into tiny pieces.
Check this project on dribbble.
Also, read how it was done in our blog
use_frameworks!
pod ‘StarWars’, ‘~> 2.0’
At first, import StarWars:
import StarWars
Then just implement class of UIViewControllerTransitioningDelegate that will return our animation form method animationControllerForDismissedController and assign it to transitioningDelegate of viewController that you want to dismiss.
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
let destination = segue.destinationViewController
destination.transitioningDelegate = self
}
func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return StarWarsGLAnimator()
}
There are also two things you can customize in the Star Wars animation: duration and sprite sizes. Let’s see how you can do this:
let animator = StarWarsGLAnimator()
animator.duration = 2
animator.spriteWidth = 8
Have fun! 🙂
We’d be really happy if you sent us links to your projects where you use our component. Just send an email to github@yalantis.com And do let us know if you have any questions or suggestion regarding the animation.
P.S. We’re going to publish more awesomeness wrapped in code and a tutorial on how to make UI for iOS (Android) better than better. Stay tuned!
1.0
Swift 2.02.0
Adds Swift 3.0 support3.0
Adds Swift 4.0 support4.0
Adds Swift 5.0 supportRecognize your user's voice elegantly without having to figure out authorization and audio engines. SwiftSpeech Examples Features Installation Getting Started ...
Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 14.0 Installation ...
SlidingRuler is a Swift package containing a SwiftUI control that acts like an linear infinite slider or a finite, more precise ...
SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and ...