---
title: "LinearProgressViewStyle | Explore SwiftUI"
description: "A progress view that visually indicates its progress using a horizontal bar. Learn how to use LinearProgressViewStyle in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/progressview/linearprogressviewstyle"
meta:
  author: "Explore SwiftUI"
  "og:description": "A progress view that visually indicates its progress using a horizontal bar. Learn how to use LinearProgressViewStyle in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_LinearProgressViewStyle%2Cdescription_A%2Bprogress%2Bview%2Bthat%2Bvisually%2Bindicates%2Bits%2Bprogress%2Busing%2Ba%2Bhorizontal%2Bbar%2Ccategory_ProgressView%2Cimage_~L2FwaS9pbWFnZXMvNzkvdmFyaWFudHMvMTAzP3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz0xMjgwJnE9ODUmZj1qcGVn%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidmlzaW9uT1MiXX0%2Cp_Ii9saWJyYXJ5L3Byb2dyZXNzdmlldy9saW5lYXJwcm9ncmVzc3ZpZXdzdHlsZSI%2Cs_DCItZVYptqZFN0kd.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "LinearProgressViewStyle | Explore SwiftUI"
  "twitter:description": "A progress view that visually indicates its progress using a horizontal bar. Learn how to use LinearProgressViewStyle in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_LinearProgressViewStyle%2Cdescription_A%2Bprogress%2Bview%2Bthat%2Bvisually%2Bindicates%2Bits%2Bprogress%2Busing%2Ba%2Bhorizontal%2Bbar%2Ccategory_ProgressView%2Cimage_~L2FwaS9pbWFnZXMvNzkvdmFyaWFudHMvMTAzP3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz0xMjgwJnE9ODUmZj1qcGVn%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidmlzaW9uT1MiXX0%2Cp_Ii9saWJyYXJ5L3Byb2dyZXNzdmlldy9saW5lYXJwcm9ncmVzc3ZpZXdzdHlsZSI%2Cs_DCItZVYptqZFN0kd.png"
  "twitter:title": "LinearProgressViewStyle | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone](https://exploreswiftui.com/iphone?element=79)

# **LinearProgressViewStyle**

A progress view that visually indicates its progress using a horizontal bar

![LinearProgressViewStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/79/variants/103?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 14.0+ iPadOS 14.0+ macOS 11.0+ watchOS 7.0+ visionOS 1.0+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/progressviewstyle/linear)

```
VStack {
    ProgressView("Foo")
    ProgressView(value: 0.42) {
        Text("Foo")
    } currentValueLabel: {
        Text("bar")
    }
}
.progressViewStyle(.linear)
```

### **Found an issue or have a suggestion?**

Created: June 5, 2025Updated: December 27, 2025

![Connect Wizard](https://exploreswiftui.com/_ipx/f_webp&q_80&s_48x48/images/connect-wizard-icon.png)

**Connect Wizard**

**Unlock insights App Store Connect doesn’t show you.**

[** Get Started **](https://apps.apple.com/app/apple-store/id6747314580?pt=121213751&ct=Explore%20SwiftUI%20Banner&mt=8)

### **More ProgressView Components **

[**View all **](https://exploreswiftui.com/library/progressview)

![ProgressView Colors - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/81/variants/24?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ProgressView Colors**

Customizing the colors of the ProgressView

![CircularProgressViewStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/80/variants/86?v=1790073478842&r=2&w=412&q=75&f=webp)

### **CircularProgressViewStyle**

The style of a progress view that uses a circular gauge to indicate the partial completion of an activity

![ProgressView - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/78/variants/65?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ProgressView**

The different ProgressView initializers

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Multiple Sources Toggle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/209/variants/633?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Multiple Sources Toggle**

Creates a toggle that updates the selected property for all sources. Once toggled, all sources will have the same value.

![Custom Phases Async URL Image - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/193/variants/215?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Custom Phases Async URL Image**

Loads and displays a modifiable image from the specified URL load request in phases.

![Gauge - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/38/variants/223?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Gauge**

Creates a gauge showing a value within a range and describes the gauge’s purpose and current value

![DatePicker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/58/variants/114?v=1790073478842&r=2&w=412&q=75&f=webp)

### **DatePicker**

Creates an instance that selects a Date with an unbounded range

![ToolbarSpacer - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/82/variants/106?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ToolbarSpacer**

A standard space item in toolbars

![CheckboxToggleStyle - macOS - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/212/variants/622?v=1790073478842&r=2&w=412&q=75&f=webp)

### **CheckboxToggleStyle**

A toggle style that displays a checkbox followed by its label.

![Glass Button Styles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/87/variants/314?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Glass Button Styles**

A button style that applies glass border artwork based on the button’s context

![Remove Toolbar Item Margin - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/235/variants/665?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Remove Toolbar Item Margin**

Configures whether the content margins are removed.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle#webpage","@type":"WebPage","dateModified":"2025-12-27T19:21:08.455Z","datePublished":"2025-06-05T15:19:14.752Z","description":"A progress view that visually indicates its progress using a horizontal bar. Learn how to use LinearProgressViewStyle in SwiftUI with visual code examples.","name":"LinearProgressViewStyle","url":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle","breadcrumb":{"@id":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/progressview/linearprogressviewstyle"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle#article","dateModified":"2025-12-27T19:21:08.455Z","datePublished":"2025-06-05T15:19:14.752Z","description":"A progress view that visually indicates its progress using a horizontal bar. Learn how to use LinearProgressViewStyle in SwiftUI with visual code examples.","headline":"LinearProgressViewStyle","inLanguage":"en-US","name":"LinearProgressViewStyle","thumbnailUrl":"https://exploreswiftui.com/api/images/79/variants/103?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@type":"WebSite","name":"Explore SwiftUI","url":"https://exploreswiftui.com"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle#/schema/software-source-code/1","@type":"SoftwareSourceCode","codeRepository":"https://developer.apple.com/documentation/swiftui/progressviewstyle/linear","codeSampleType":"full example","description":"A progress view that visually indicates its progress using a horizontal bar. Learn how to use LinearProgressViewStyle in SwiftUI with visual code examples.","name":"LinearProgressViewStyle SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"VStack {\n    ProgressView(\"Foo\")\n    ProgressView(value: 0.42) {\n        Text(\"Foo\")\n    } currentValueLabel: {\n        Text(\"bar\")\n    }\n}\n.progressViewStyle(.linear)","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"ProgressView"},{"@type":"Thing","name":"LinearProgressViewStyle"}]},{"@id":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"ProgressView","item":"https://exploreswiftui.com/library/progressview","position":2},{"@type":"ListItem","name":"LinearProgressViewStyle","item":"https://exploreswiftui.com/library/progressview/linearprogressviewstyle","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/79/variants/103?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/79/variants/103?v=1790073478842&r=2"}]}
```