Class

UIProgressView

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

Declaration

class UIProgressView : UIView

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: UIProgressView.Style

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 UIProgressView.Style

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.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software