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


Burst 🎆

Burst is a Swift and simple way to make elements in your iOS app burst.

Back in the day, Facebook Paper popularized a firework burst effect using CAEmitterLayers with buttons.

This library provides a firework effect using CAEmitterLayers contained in an easy-to-use customizable component, written in Swift.

If you enjoy this library, you may also like another CAEmitterLayer project, Twinkle.

Build Status Pod Version Swift Version GitHub license

  • 5.0 – Target your Podfile to the latest release or master

Quick Start

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

# CocoaPods
pod "Burst", "~> 0.1.0"

# Carthage
github "piemonte/Burst" ~> 0.1.0

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


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

   import Burst

// ...
    let button: BurstButton = BurstButton(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
// ...

extension ViewController {

    @objc func handleButton(_ button: BurstButton) {
        button.isSelected = !button.isSelected




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

Latest podspec

    "name": "Burst",
    "version": "0.1.1",
    "license": "MIT",
    "summary": "Swift and easy way to make elements in your iOS or tvOS app burst",
    "homepage": "",
    "social_media_url": "",
    "authors": {
        "patrick piemonte": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.1"
    "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