---
title: "How do you change the size of a ProgressView in SwiftUI?"
description: "ProgressView has no size parameter. Scale a spinner with scaleEffect, set a bar's width with frame, or write a custom ProgressViewStyle for a thicker bar."
url: "https://bugsee.com/answers/swift/swiftui-progressview-size/"
---

# How do you change the size of a ProgressView in SwiftUI?

`ProgressView` has no size option. Scale a spinner with `.scaleEffect`, control a bar's width with `.frame(width:)`, and use a custom `ProgressViewStyle` to change a bar's height.

```swift
// Spinner
ProgressView()
    .scaleEffect(1.8)

// Bar width
ProgressView(value: 0.6)
    .frame(width: 200)

// Thicker bar with a custom style
struct ThickBar: ProgressViewStyle {
    func makeBody(configuration: Configuration) -> some View {
        let fraction = configuration.fractionCompleted ?? 0
        GeometryReader { geo in
            ZStack(alignment: .leading) {
                Capsule().fill(.quaternary)
                Capsule().fill(.tint).frame(width: geo.size.width * fraction)
            }
        }
        .frame(height: 12)
    }
}

ProgressView(value: 0.6).progressViewStyle(ThickBar())
```

`scaleEffect` scales the drawn view without changing its layout size, so add padding if a scaled spinner overlaps its neighbors.

## Related questions

- [How do you use an enum with a Picker in SwiftUI?](https://bugsee.com/answers/swift/swiftui-picker-enum/)
