Giter Club home page Giter Club logo

burst's Introduction

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.2"

# Carthage
github "piemonte/Burst" ~> 0.1.2

# SwiftPM
let package = Package(
    dependencies: [
        .Package(url: "https://github.com/piemonte/Burst", majorVersion: 0)
    ]
)

Usage

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
    }
}

Community

Resources

License

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

burst's People

Contributors

piemonte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

burst's Issues

iOS 13, UITableViewCell: stop method of Burst animation not called

Hello and thank you for this library! I'm using it in an app of mine, where I have a like button in posts, in a UITableViewCell.

When the button is pressed, the explode animation never stops. When debugging, if I create breakpoints at the dispatch blocks, then the methods get called normally and the animation stops, but without breakpoints, the animation never stops.

Do you have any idea how to work around this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.