Latest 0.5.0
License MIT
Platforms ios 10.0, tvos 10.0, requires ARC


Twinkle :sparkles:

Twinkle is a Swift and easy way to make any UIView in your iOS or tvOS app twinkle.

This library creates several CAEmitterLayers and animates them generating a sparkle effect.

A version of Twinkle is also available for Android.

Build Status Pod Version Swift Version GitHub license

Need a different version of Swift?

  • 5.0 – Target your Podfile to the latest release or master
  • 4.2 – Target your Podfile to the swift4.2 branch
  • 4.0 – Target your Podfile to the swift4.0 branch

Quick Start

Twinkle is available and recommended for installation using the Cocoa dependency manager CocoaPods. You can also simply copy the Twinkle.swift file into your Xcode project.

# CocoaPods
pod "Twinkle", "~> 0.5.0"

# Carthage
github "piemonte/Twinkle" ~> 0.5.0

# SwiftPM
let package = Package(
    dependencies: [
        .Package(url: "", majorVersion: 0)


The sample project provides an example of how to integrate Twinkle, otherwise you can follow this example.

   import Twinkle

   // using the UIView extension
   let view: UIView = UIView(frame: CGRect(x: 0, y: 0, width: 150, height: 50))

   // using the class func




Twinkle is available under the MIT license, see the LICENSE file for more information.

Latest podspec

    "name": "Twinkle",
    "version": "0.5.0",
    "license": "MIT",
    "summary": "Swift and easy way to make elements in your iOS or tvOS app twinkle",
    "homepage": "",
    "social_media_url": "",
    "authors": {
        "patrick piemonte": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.5.0"
    "platforms": {
        "ios": "10.0",
        "tvos": "10.0"
    "source_files": "Sources/*.swift",
    "resources": "Sources/Resources/*.png",
    "requires_arc": true,
    "swift_versions": "5.0",
    "screenshots": ""

Pin It on Pinterest

Share This