Description
Twinkle is a Swift library that makes any UIView in an iOS or tvOS app twinkle. It creates several CAEmitterLayers and animates them to produce a sparkle effect, so you can add the effect to a view without building particle animation yourself. The README requires iOS 15.0 or tvOS 15.0 or later, Xcode 15.0 or later, and Swift 6.0 or later. The recommended way to install it is CocoaPods, and you can also copy the single Twinkle.swift file into your Xcode project. A sample project in the repository shows how to integrate it, and the README includes a short usage example. A version for Android also exists, and the author suggests the related Burst library if you like Twinkle. The README's resources section links to Core Animation references, Swift Evolution and other effect libraries such as Shimmer and Blurry. Twinkle is available under the MIT license.…
Highlights
- Sparkle effect on any UIView
- Built on CAEmitterLayer
- iOS 15 and tvOS 15 support
- Install with CocoaPods or copy one file
- MIT license
Ratings & Reviews
No ratings yet
Be the first to rate Twinkle.
People also visit
JDFlipNumberView
[iOS] Animated analog flip numbers like airport/train-station displays
Twinkle FAQ
What is Twinkle?
A Swift library that adds a sparkle effect to any UIView in an iOS or tvOS app.
How do I install it?
The README recommends CocoaPods. You can also copy the Twinkle.swift file into your Xcode project.
Which versions does it need?
iOS 15.0 or tvOS 15.0 or later, Xcode 15.0 or later, and Swift 6.0 or later.
Is there a version for Android?
Yes. The README links a separate Twinkle for Android.
Is it open source?
Yes. Twinkle is available under the MIT license, and the LICENSE file is in the repository.
What are the best Twinkle alternatives?
Popular alternatives to Twinkle include Pow, Shiny and Pastel. See all Twinkle alternatives

