SkillAgentSearch skills...

UIPillsView

Pills view for iOS, given an array of strings it generates a view with a cloud of pill-shaped tags.

Install / Use

/learn @soheil-zz/UIPillsView
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

UIPillsView

Pills view for iOS, given an array of strings it generates a scrollable view with a cloud of pill-shaped tags.

Example

- (void)viewDidLoad
{
    CGRect frame = self.view.frame;

    frame.origin.y = 100;
    frame.size.height = 100;
    UIPillsView *pillsView = [[UIPillsView alloc] initWithFrame:frame];
    NSArray *strings = [NSArray arrayWithObjects:@"Pills", @"view", @"for", @"iOS", @"given", @"an", @"array of strings", @"it", @"generates", @"a view with", @"a cloud", @"of", @"pill-shaped", @"tags", @"Pills", @"view", @"for", @"iOS", nil];
    [pillsView generatePillsFromStringsArray:strings];
    
    [self.view addSubview:pillsView];
}

alt tag

Integration Instruction

Copy UIPillsView.h, UIPillsView.m, UILabel+dynamicSizeMeWidth.h and UILabel+dynamicSizeMeWidth.m files to your project and include UIPillsView.h in the class that you will be creating a UIPillsView view from.

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated2y ago
Forks3

Languages

Objective-C

Security Score

75/100

Audited on Feb 15, 2024

No findings