Add a visually striking dismiss animation to any iOS view controller with minimal code changes
Customize the fragment size and duration to create either a fine-dust or chunky-shatter look
Study OpenGL-based iOS animation as an alternative approach to standard UIKit transitions
| yalantis/starwars.ios | damascenorafael/reminders-menubar | pkluz/pkhud | |
|---|---|---|---|
| Stars | 3,770 | 3,771 | 3,779 |
| Language | Swift | Swift | Swift |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 1/5 | 2/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires iOS 8.0 or later, add one line to your Podfile and run pod install to get started.
StarWars.iOS is a Swift library for iOS that adds a visual transition effect to your app. When a screen is dismissed, the animation breaks it apart into a shower of tiny fragments that scatter and disappear, giving the impression that the view is crumbling into dust. The effect is rendered using OpenGL rather than the standard UIKit animation system, which is how the library achieves the particle-level detail. To add it to an iOS project, you include it as a CocoaPods dependency with one line in your Podfile. In code, you hook into the iOS transition system by implementing a delegate object that returns the library's animator when a view controller is being dismissed. Once that is wired up, the animation runs automatically whenever the screen is closed. The library exposes two settings you can adjust: the duration of the animation and the size of the individual sprite pieces the screen breaks into. Smaller sprites produce a finer, more granular crumble effect, while larger ones give a chunkier look. The defaults work out of the box without any configuration. The library requires iOS 8.0 or later and was built with Swift. The version history tracks updates through Swift 2, 3, 4, and 5 compatibility releases. It is distributed under the MIT license and was created by Yalantis, a mobile design and development studio. A blog post on the Yalantis website documents the technical choices behind the animation, comparing UIKit animations, UIDynamics, and OpenGL as approaches for this kind of visual effect.
StarWars.iOS is a Swift library that adds a dramatic crumble-to-dust dismiss animation to your iOS app, when a screen closes, it shatters into hundreds of scattered fragments using OpenGL rendering.
Mainly Swift. The stack also includes Swift, iOS, OpenGL.
MIT license, use freely for any purpose including commercial apps, just keep the copyright notice.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.