TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2015 |
SPMSupports SPM | ✗ |
Maintained by Gonzalo Nunez.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Using GNTickerButton is very easy. Rotating the ticker is as easy as calling one function:
public func rotateTickerWithDuration(duration:CFTimeInterval, rotations repeatCount:Int = 1, rotationBlock: (Void -> Void)?) {
The rotationBlock gets called everytime the ticker rotates completely. Keep in mind you can choose to pass nil into here and set yourself as the delegate of the GNTickerButton instead. For this, you’ll need to conform to GNTickerButtonRotationDelegate.
Note: As of right now, passing in a non-nil block takes precedence over the delegate. The delegate method is only called if no block was passed in.
The rest of the variables should be very self explanatory. Oh and take note that this is an @IBDesignable class with many @IBInspectable variables!
GNTickerButton is available through CocoaPods. To install it, simply add the following lines to your Podfile:
use_frameworks!
pod "GNTickerButton"
Please feel free to submit any and all pull requests, I know there’s more we can add to this button!
Gonzalo Nunez, [email protected]
GNTickerButton is available under the MIT license. See the LICENSE file for more info.