SkillAgentSearch skills...

GifTabBarController

Animation tabBarItem with GIF.

Install / Use

/learn @FelixLinBH/GifTabBarController
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GifTabBarController

Version License Platform

This library provides tabBarController has animation tabBarItem with GIF image.

##Preview Screen Shot

GifTabBarController Screenshot

How To Use

###Use Cocoapods

pod "GifTabBarController"

###Import header file

#import "GifTabBarHeader.h"

###Use GifTabBarItem to create UITabBarItem item ####Two way init item. Initialize with tabBar title,gif url string and viewController

- (instancetype)initWithTitle:(NSString *)title gifUrlString:(NSString *)gifUrlString viewController:(UIViewController *)viewController

#####Example

GifTabBarItem *tabBarItem = [[GifTabBarItem alloc]initWithTitle:@"TabBarItemTitle" gifUrlString:@"www.xxx.1.gif" viewController:viewcontroller];

or

With normalImage and selectedImage

NormalImage will show in normal status(it mean not been selected)

GIF animation is transitions from normalImage to selectedImage.

- (instancetype)initWithTitle:(NSString *)title gifUrlString:(NSString *)gifUrlString viewController:(UIViewController *)viewController normalImage:(UIImage *)normalImage selectedImage:(UIImage *)selectedImage

#####Example

GifTabBarItem *tabBarItem = [[GifTabBarItem alloc]initWithTitle:@"TabBarItemTitle" gifUrlString:@"www.xxx.1.gif" viewController:viewcontroller normalImage:[UIImage imageNamed:@"normalImage"] selectedImage:[UIImage imageNamed:@"selectedImage"]]];

###Use GifTabBarController to create UITabBarController with GifTabBarItem Set.

- (instancetype)initWithTabItems:(NSArray *)array;

#####Example

GifTabBarController *tab = [[GifTabBarController alloc]initWithTabItems:@[oneTabBarItem,twoTabBarItem,threeTabBarItem,fourTabBarItem,fiveTabBarItem]];

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

To Do

  • Support animation type to control animation while it been selected. (infinite animation or not)
  • Support tabBarItem label change color while it been selected.
  • Support tabBarItem backgound shadow while it been selected.

Dependency

Author

Created by Felix.Lin

License

GifTabBarController is available under the MIT license. See the LICENSE file for more info.

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks0

Languages

Objective-C

Security Score

70/100

Audited on Jan 23, 2024

No findings