Latest 2.3.0
Homepage https://github.com/onmyway133/Cheers
License MIT
Platforms osx 10.13, ios 8.0, tvos 9.2, requires ARC
Authors

Version
Carthage Compatible
License
Platform
Swift

Usage

Basic

// Create the view
let cheerView = CheerView()
view.addSubview(cheerView)

// Configure
cheerView.config.particle = .confetti(allowedShapes: Particle.ConfettiShape.all)

// Start
cheerView.start()

// Stop
cheerView.stop()

Configuration

Configuration will be applied at the next start

// Use predefined confetti
cheerView.config.particle = .confetti(allowedShapes: Particle.ConfettiShape.all)

// Use texts
let string = NSAttributedString(string: "❤️", attributes: [
  NSFontAttributeName: UIFont.systemFont(ofSize: 15)
])
cheerView.config.particle = .text([string])

// Use images
let image = UIImage(named: "star")
cheerView.config.particle = .image([image])

// Change colors
cheerView.config.colors = [UIColor.red, UIColor.green]

// Customize cells
cheerView.config.customize = { cells in

}

Installation

Cheers is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Cheers'

Cheers is also available through Carthage.
To install just write into your Cartfile:

github "hyperoslo/Cheers"

Cheers can also be installed manually. Just download and drop Sources folders in your project.

Author

Credit

Contributing

We would love you to contribute to Cheers, check the CONTRIBUTING file for more info.

License

Cheers is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Cheers",
    "summary": "Fancy confetti effects in Swift",
    "version": "2.3.0",
    "homepage": "https://github.com/onmyway133/Cheers",
    "license": "MIT",
    "authors": {
        "Khoa Pham": "[email protected]"
    },
    "source": {
        "git": "https://github.com/onmyway133/Cheers.git",
        "tag": "2.3.0"
    },
    "social_media_url": "https://twitter.com/onmyway133",
    "platforms": {
        "osx": "10.13",
        "ios": "8.0",
        "tvos": "9.2"
    },
    "requires_arc": true,
    "source_files": "Sources/Common/**/*",
    "osx": {
        "source_files": "Sources/macOS/**/*"
    },
    "swift_versions": "5.0"
}

Pin It on Pinterest

Share This