Skip to content

eejahromi/EJImageLiker

Repository files navigation

EJImageLiker

EJImageLiker is a simple "Like Animation" Library for images on iOS.

Project allows for different animations after double tapping on an image.

Usage

-Add the like icons to your project's Assets catalog

(Make sure the icon names match what's in the file. "Favorite" and "Favorite-black")

-Add the EJImageLikersource files from Source/ to your project

Add the header file to your source code

#import "EJImageLiker.h"

Create an instance of EJImageLiker

    EJImageLiker *liker = [[EJImageLiker alloc]initWithFrame:CGRectMake(100,200, 200, 200) 
                            andImage:[UIImage imageNamed:@"fall"]];
    [self.view addSubview:liker];

Set the AnimationStyle

    [liker setAnimationStyle:AnimationStyleFade]; // default
  • Other AnimationStyles Available:
    • AnimationStyleFade
    • AnimationStyleReverseFade
    • AnimationStyleBlink
    • AnimationStyleMoveToCorner
    • AnimationStyleStayOnBottom

Set the color of favorite icon

    [liker setLikerImageColor:LikerColorWhite]; // default
  • Other color of favorite icon
    • LikerColorBlack

About

Simple iOS "Like" animation Library for images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published