Inherits from UIView
Declared in TKProgressRingView.h
TKProgressRingView.m

Overview

TKProgressRingView is a view designed to animate a progress similiar to that in that in the Activity app.

Properties

baseGradientView

The view that displays the image for a background image.

@property (nonatomic, strong) UIImageView *baseGradientView

Declared In

TKProgressRingView.h

circleLayer

The circle layer.

@property (nonatomic, strong) CAShapeLayer *circleLayer

Declared In

TKProgressRingView.h

curve

The progress of the circle.

@property (nonatomic, assign) TKProgressRingAnimationCurve curve

Declared In

TKProgressRingView.h

fullCircleLayer

The layer thats used to give the background a color.

@property (nonatomic, strong) CAShapeLayer *fullCircleLayer

Declared In

TKProgressRingView.h

progress

The progress of the circle.

@property (nonatomic, assign) CGFloat progress

Declared In

TKProgressRingView.h

progressColor

The progress color.

@property (nonatomic, strong) UIColor *progressColor

Declared In

TKProgressRingView.h

progressGradientView

The view that displays the image for a progress ring image.

@property (nonatomic, strong) UIImageView *progressGradientView

Declared In

TKProgressRingView.h

progressImage

The image used by the progress meter. Typically its a radial gradient image

@property (nonatomic, strong) UIImage *progressImage

Declared In

TKProgressRingView.h

radius

The radius of the circle.

@property (nonatomic, assign) CGFloat radius

Declared In

TKProgressRingView.h

strokeWidth

The width of the ring.

@property (nonatomic, assign) CGFloat strokeWidth

Declared In

TKProgressRingView.h

Instance Methods

initWithFrame:radius:strokeWidth:

Initializes and returns a progress ring of the given frame, radius and stroke width.

- (instancetype)initWithFrame:(CGRect)frame radius:(CGFloat)radius strokeWidth:(CGFloat)strokeWidth

Parameters

frame

The frame of the rectangle.

radius

The radius for the the ring.

strokeWidth

The width of the ring.

Return Value

An instance of the progress ring or nil.

Declared In

TKProgressRingView.h

setProgress:animated:

Set the progress by animating.

- (void)setProgress:(CGFloat)progress animated:(BOOL)animated

Parameters

progress

The progress that the ring will be set to.

animated

A flag to have the progress set by animation.

Declared In

TKProgressRingView.h

setProgress:duration:

Set the progress by animating.

- (void)setProgress:(CGFloat)progress duration:(NSTimeInterval)duration

Parameters

progress

The progress that the ring will be set to.

duration

The duration of the animation.

Declared In

TKProgressRingView.h