DOFavoriteButton alternatives and similar libraries
Based on the "Button" category.
Alternatively, view DOFavoriteButton alternatives based on common mentions on social networks and blogs.
-
Hamburger button transition
Hamburger button transition. -
LGButton
A fully customisable subclass of the native UIControl which allows you to create beautiful buttons without writing any line of code. -
KCFloatingActionButton
:heart: Floating Action Button for iOS -
ZFRippleButton
Custom UIButton effect inspired by Google Material Design -
TransitionButton
UIButton sublass for loading and transition animation. -
TVButton
Recreating the cool parallax icons from Apple TV as iOS UIButtons (in Swift). -
FloatingButton
Easily customizable floating button menu created with SwiftUI -
PMSuperButton
🔥 PMSuperButton is a powerful UIButton coming from the countryside, but with super powers! 😎 -
AHDownloadButton
Customizable download button with progress and transition animations. It is based on Apple's App Store download button. -
NFDownloadButton
Revamped Download Button. It's kinda a reverse engineering of Netflix's app download button. -
SimpleButton
Simple UIButton subclass with additional state change animations (e.g. backgroundColor) and missing features -
HamburgerButton
Hamburger button with a slick animation. -
SwiftShareBubbles
Animated Social share buttons control for iOS written in Swift -
ExpandableButton
Customizable and easy to use expandable button in Swift. -
DesignableButton
A Custom UIButton with Centralised Styling and common styles available in Interface Builder -
MultiToggleButton
Multiple state tap-to-toggle UIButton (like old camera flash button) -
AnimatablePlayButton
Animated Play and Pause Button written in Swift, using CALayer, CAKeyframeAnimation. -
SDevBootstrapButton
Twitter Bootstrap buttons for Swift. -
IGStoryButtonKit
IGStoryButtonKit provides an easy-to-use button with rich animation and multiple way inspired by instagram story/stories. -
NxEnabled
Library that allows you binding `enabled` property of button with textable elements (TextView, TextField) -
QBIndicatorButton
:heavy_check_mark: Simple way to display activity indicator inside the button.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of DOFavoriteButton or a related project?
README
DOFavoriteButton
Cute Animated Button written in Swift.
It could be just right for favorite buttons!
Requirements
- iOS 7.0+
- Swift 1.2
Installation
Carthage
Add the following line to your Cartfile
:
github "okmr-d/DOFavoriteButton"
CocoaPods
Add the following line to your Podfile
:
pod 'DOFavoriteButton'
Manual
Just drag DOFavoriteButton.swift to your project.
How to use
1. Add a flat icon image
2. Create a button
・By coding
let button = DOFavoriteButton(frame: CGRectMake(0, 0, 44, 44), image: UIImage(named: "star.png"))
self.view.addSubview(button)
・By using Storyboard or XIB
Add Button object and set Custom Class
DOFavoriteButton
Connect Outlet
3. Add tapped function
button.addTarget(self, action: Selector("tapped:"), forControlEvents: .TouchUpInside)
func tapped(sender: DOFavoriteButton) {
if sender.selected {
// deselect
sender.deselect()
} else {
// select with animation
sender.select()
}
}
Customize
You can change button color & animation duration:
button.imageColorOff = UIColor.brownColor()
button.imageColorOn = UIColor.redColor()
button.circleColor = UIColor.greenColor()
button.lineColor = UIColor.blueColor()
button.duration = 3.0 // default: 1.0
Result:
DEMO
There is a demo project added to this repository, so you can see how it works.
Credit/Inspiration
DOFavoriteButton was inspired by Twitter's iOS App.
License
This software is released under the MIT License.
*Note that all licence references and agreements mentioned in the DOFavoriteButton README section above
are relevant to that project's source code only.