Class

UIProgressView

A view that depicts the progress of a task over time.

Overview

The UIProgressView class provides properties for managing the style of the progress bar and for getting and setting values that are pinned to the progress of a task.

For an indeterminate progress indicator—or, informally, a “spinner”—use an instance of the UIActivityIndicatorView class.

Topics

Initializing the UIProgressView Object

Managing the Progress Bar

var progress: Float

The current progress shown by the receiver.

func setProgress(Float, animated: Bool)

Adjusts the current progress shown by the receiver, optionally animating the change.

var observedProgress: Progress?

The progress object to use for updating the progress view.

Configuring the Progress Bar

var progressViewStyle: UIProgressViewStyle

The current graphical style of the receiver.

var progressTintColor: UIColor?

The color shown for the portion of the progress bar that is filled.

var progressImage: UIImage?

An image to use for the portion of the progress bar that is filled.

var trackTintColor: UIColor?

The color shown for the portion of the progress bar that is not filled.

var trackImage: UIImage?

An image to use for the portion of the track that is not filled.

Constants

enum UIProgressViewStyle

The styles permitted for the progress bar.

See Also

Content Views

class UIActivityIndicatorView

A view that shows that a task is in progress.

class UIImageView

An object that displays a single image or a sequence of animated images in your interface.

class UIPickerView

A view that uses a spinning-wheel or slot-machine metaphor to show one or more sets of values.

class UIWebView

A view that embeds web content in your app.