ben

BENTagsView

BENTagsView allows you to quickly add a series of tags to any UIView. It is easy to add tags, customize fonts and colors, and to turn tags on and off.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

63

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

0

License

MIT

Categories

Readme

BENTagsView

A simple UIView sublass for displaying a series of tags.

BENTagsView allows you to quickly add a series of tags to any UIView.

Installation

CocoaPods is the recommended method of installing BENTagsView. Simply add the following line to your Podfile:

Podfile

pod 'BENTagsView'

Usage

    //create the tags view
    BENTagsView *tagsView = [[BENTagsView alloc] init];
    
    //set the tag strings
    tagsView4.tagStrings = @[@"tag one", @"tag two", @"tag three"];     
    
    //switch some tags on - all others will be off
    NSMutableIndexSet *onIndexes = [NSMutableIndexSet indexSetWithIndex:0];
    [onIndexes addIndex:2];
    [tagsView setOnIndexes:onIndexes];

    //customize on/off colors
    [tagsView setOnColor:[UIColor greenColor]];
    [tagsView setOffColor:[UIColor redColor]];
    
    //customize font, corner radii
    [tagsView setFont:[UIFont fontWithName:@"Baskerville-BoldItalic" size:16]];
    [tagsView setTagCornerRadius:3];
    
    //add the view
    [someView addSubview:tagsView];

Demo

Build and run the BENTagsViewDemo project in Xcode to see BENTagsView in action.

Contact

Ben Packard

License

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100