Skip to content
forked from piemonte/Twinkle

a Swift and easy way to make elements in your iOS app twinkle ✨

License

Notifications You must be signed in to change notification settings

ALEXGUOQ/Twinkle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twinkle

Twinkle ✨

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

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

Installation

CocoaPods

Twinkle is available and recommended for installation using the Cocoa dependency manager CocoaPods. CocoaPods is still adding support for Swift, so a pre-release version is required.

To integrate, just add the following line in your Podfile:

pod ‘Twinkle’

Carthage

Installation is also available using the dependency manager Carthage.

To integrate, add the following line to your Cartfile:

github “piemonte/Twinkle” >= 0.0.1

Manual

You can also simply copy the Twinkle.swift file into your Xcode project.

Usage

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

   import Twinkle
   let view: UIView = UIView(frame: CGRect(x: 0, y: 0, width: 150, height: 50))
   self.view.addSubview(view)
   view.twinkle()

Community

Resources

License

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

About

a Swift and easy way to make elements in your iOS app twinkle ✨

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 94.9%
  • Ruby 5.1%