GithubHelp home page GithubHelp logo

janselv / fave-button Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 202.0 2.52 MB

FaveButton is an iOS cute animated like button written in Swift.

License: MIT License

Objective-C 1.00% Swift 98.00% Ruby 1.00%

fave-button's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fave-button's Issues

Access to create brunches

Author, please give access to create branches in order to maintain this project. First of all, add swift 4 support

The favorite buttons delegate is not called right away

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.

Is fave-button's size fixed?

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?

Support for swift 4.0?

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.

use 2 images

can we use 2 images ? one before selection animation other after selection animation completes ??

Invoke animation fave-button during viewDidLoad?

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!

it have OC version

I won‘t use swift because it will make my app’s ipa bigger。so where i can found OC version

Cocoapod Issue

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?

Make work properly with button title label

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?

Selection with no animation

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?

Using a different image at the end of the animation

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

Swift 3?

Will this be being updated to Swift 3?

didSelect method delay

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.

iPad frame issue

Button size not updating for iPad, It takes iPhone button frame.

Button covers the whole screen

Once the VC opens the button covers the whole screen. I dont get any constraint errors either and I have a fixed width and height. I am using swift 3 and xcode 8.

No Idea whats causing this :/

screen shot 2016-10-07 at 04 10 12

Cant install using: pod 'FaveButton', '~> 2.0.0'

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.

fill a transparent heart with red color

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.

like.pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.