janselv / fave-button Goto Github PK
View Code? Open in Web Editor NEWFaveButton is an iOS cute animated like button written in Swift.
License: MIT License
FaveButton is an iOS cute animated like button written in Swift.
License: MIT License
It will good if we add Swift Package Support.
Thank you for support!
when i add a fave-button in navigation bar as right item my app crashed.
Is there any plan to support Objective-C?
Author, please give access to create branches in order to maintain this project. First of all, add swift 4 support
I am using this which I think is great however I think I am experiencing a button with the favorite button. The button does not respond to the tap event immediately. This is a causing an issue when the user presses the favorite button and then closes the screen before the button has a chance to respond. Is there a way to correct this without changing the favorite button's code? Thanks, Greg.
It only changes after the first tap
I want to set like image in tableview according to isLike or not? So how i can do it?
It seems that I cannot change the size of the fave-button. Is it possible to make the size the same as the imageView's size?
Hi
the latest version doesn't seem to support Swift 4.0
I get an error in FaveButton.swift indicating:
'init(colorLiteralRed:green:blue:alpha:)' is unavailable: This initializer is only meant to be used by color literals
This can be solved by replacing colorLiteralRed to red and toggle func() to be preceded by @objc
If you would like i can submit a Pull Request.
can we use 2 images ? one before selection animation other after selection animation completes ??
I want to invoke animation fave-button during viewDidLoad
I found a solution.
At library fave-button.
func animateSelect (line:177)
Change private ->public
At viewController
call FaveButton.animateSelect(true, duration: Double)
It work!
So I want library change scope function animateSelect: private -> public
Thank you!
I won‘t use swift because it will make my app’s ipa bigger。so where i can found OC version
Please update for Swift 3.3..
When I add the pod 'FaveButton', and install the pod file, I get the error message:
[!] Unable to find a specification for FaveButton
Can you help me solve this?
Please fix this initializer by making it public
I'd like to use the button title label to show a counter of likes right aligned to the image. But it seems that it's disregarding the constraints and insets we use from the storyboard, in other words, the image is always fixed in the middle of the button.
How can we have the image and the label working together to achieve this goal?
In my view there is favourite button. I want to set favbutton as selected.
So i have write this in viewDidLoad:
favButton.isSelected = true
but it shows animations when my view is loading.
I only want animations on favButton tap.
So is there any method for setting selected behaviour without animation? or how can achieve this?
Hi,
Great library, congrats 👍
With a white bordered empty icon, I want the result to become filled with color. Another option is a completely different image (i.e. white bordered as "default", filled image as "selected"). As an example, I think the heart button in Instagram fits in our case.
How can we achieve this?
Best,
Ugur
I'm trying to specify the button image insets but it's not working.
It works as expected on UIButton but the FavButton always stretch the image to fill the button frame.
Will this be being updated to Swift 3?
I can not change tint color on button.
It only changes with the normal color, after clicking it.
Not compiling in latest swift
when set the delegate, it will strong reference to the view controller
The didSelect method has a significant delay between the moment the button is tapped and the moment the method itself is called.
DO NOT use it, instead simply link an action to the button as you normally would.
Button size not updating for iPad, It takes iPhone button frame.
I have added UIButton
inside UITableViewCell
and I change UIButton
Class to FaveButton
and when I set only Delegate
then Dot animation works but when I create outlet then Dot animation doesn't works, it only show circle animation color.
Please guide me what I am missing?
Thanks
I couldn't change the default gray color in any way.
Is there an option?
Broken. Not able to compile in 4.2
I want to upgrade my project as well as this framework. Please provide either framework or cocoapods for which I can update it to latest version.
When I add pod 'FaveButton', '~> 2.0.0' and run pod install I get:
[!] Unable to satisfy the following requirements:
- `FaveButton (~> 2.0.0)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `FaveButton (~> 2.0.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
I have a heart image which is transparent from the inner part, when I use fave-button it colors the image itself (only the border line of the heart) which's reasonable because it applies the mark on the image itself, what I need to achieve is to fill the heart with red color for the inner part too, vector image is attached.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.