TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Alex Steiner.
Favorite Animated Button written in Swift
For manual instalation, drag Source folder into your project.
os use CocoaPod adding this line to you Podfile
:
pod 'FaveButton', '~> 2.1'
Create a Button that inherits from FaveButton
Add Image for a Normal
state
Set the IBOutlet
delegate property to a subclass of FaveButtonDelegate
Optional manipulate porperties to change button settings
@IBInspectable public var dotFirstColor: UIColor
@IBInspectable public var dotSecondColor: UIColor
@IBInspectable public var circleFromColor: UIColor
@IBInspectable public var circleToColor: UIColor
Needs to add later.
If you want differents colors for dots like Twitter’s Heart Animation
use the delegate method for the button you want.
func faveButtonDotColors(_ faveButton: FaveButton) -> [DotColors]?{
if faveButton == myFaveButton{
// return dot colors
}
return nil
}
in FaveButtonDemo you will find a set of color to cause dots appear like this:
FaveButton was inspired by Twitter’s Like Heart Animation within their App
FaveButton is released under the MIT license.