SkillAgentSearch skills...

SlantyDashedView

A view requested by a redditor

Install / Use

/learn @daltonclaybrook/SlantyDashedView
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SlantyDashedView

A view requested by a redditor

image

##Example Usage

Initialize the view from a XIB / Storyboard, or programmatically using any of the initializer methods on UIView

SlantyDashedView *dashedView = [[SlantyDashedView alloc] initWithFrame:CGRectMake(0, 0, 200, 12)];

Choose colors:

dashedView.backgroundColor = [UIColor redColor];
dashedView.dashColor = [UIColor greenColor];

Specify width and spacing values for the dashes:

dashedView.dashWidth = 8.0f;
dashedView.dashSpacing = 12.0f;

Specify the horizontal translation of the dashes:

dashedView.horizontalTranslation = 6.0f;

Animate the dashes:

dashedView.animationDirection = SlantyDashedViewAnimationDirectionRightToLeft;

// animation speed is specified in points per second
[dashedView startAnimatingWithSpeed:40.0f];

// after some time has elapsed
[dashedView stopAnimating];
View on GitHub
GitHub Stars7
CategoryDevelopment
Updated4y ago
Forks0

Languages

Objective-C

Security Score

70/100

Audited on Jun 10, 2021

No findings