---
title: "init(progressViewStyle:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiprogressview/init(progressviewstyle:)"
---

# init(progressViewStyle:)

Creates a progress view with the specified style.

## Declaration

```swift
convenience init(progressViewStyle style: UIProgressView.Style)
```

## Parameters

- `style`: A constant that specifies the style of the object to be created. See doc://com.apple.uikit/documentation/UIKit/UIProgressView/Style for descriptions of the style constants.

## Return Value

Return Value An initialized UIProgressView object.

## Discussion

Discussion UIProgressView sets the height of the returned view according to the specified style. You can set and retrieve the style of a progress view through the progressViewStyle property.

## See Also

### Creating a progress view

- [init(frame:)](uikit/uiprogressview/init(frame:).md)
- [init(coder:)](uikit/uiprogressview/init(coder:).md)
