Skip to content

trilhagroup/ETTagView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ETTagView

A wrapper flexible for multiple interactive colorful tags. ETTagView creates buttons inside a view with different colors, texts and interactions. Just provide an array of dictionaries and this view will be able to display everything automatically.

Installation

Clone this repo and copy the folder ETTagView into your Xcode project.

How-to

Video

image

Screenshots

image

Initialization

Programmatically, you must create using a traditional view or from your project's IB file.

- (CGRect)layoutTags:(NSArray *)tags colored:(BOOL)colored;
- (CGRect)layoutTags:(NSArray *)tags matchingTags:(NSArray *)matchingTags colored:(BOOL)colored;
- (CGRect)layoutTags:(NSArray *)tags colored:(BOOL)colored forMaximumSize:(NSInteger)maxSize canOverflow:(BOOL)overflow;
- (CGRect)layoutTags:(NSArray *)tags matchingTags:(NSArray *)matchingTags colored:(BOOL)colored forMaximumSize:(NSInteger)maxSize canOverflow:(BOOL)overflow;

tags is an array of dictionaries, structured as:

tagID: string used to compare objects with matchingTags
color: string hexadecimal to generate a color
name: string indicating the name of this tag

Delegate

You have several delegate callbacks available to you. Just hook your delegate outlet and you are ready to go!

@optional
- (void)tagView:(ETTagView *)tagView touchedButtonAtIndex:(NSInteger)buttonIndex matching:(BOOL)matching;

Support

Just open an issue on Github and we'll get to it as soon as possible.

About

ETTagView is brought to you by Trilha.

About

A wrapper flexible for multiple interactive colorful tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published