<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ProgressView/init(_:value:total:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12ProgressViewV_5value5totalACyAA4TextVAA05EmptyD0VG10Foundation23LocalizedStringResourceV_qd__Sgqd__tcAGRszAIRs_SBRd__lufc::OverloadGroup"
  },
  "title" : "init(_:value:total:)"
}
-->

# init(_:value:total:)

Creates a progress view for showing determinate progress that generates
its label from a localized string resource.

```
@export(implementation) nonisolated init<V>(_ titleResource: LocalizedStringResource, value: V?, total: V = 1.0) where Label == Text, CurrentValueLabel == EmptyView, V : BinaryFloatingPoint
```

## Parameters

`titleResource`

Text resource for the progress view’s localized
title that describes the task in progress.

`value`

The completed amount of the task to this point, in a range
of `0.0` to `total`, or `nil` if the progress is
indeterminate.

`total`

The full amount representing the complete scope of the
task, meaning the task is complete if `value` equals `total`. The
default value is `1.0`.

## Discussion

If the value is non-`nil`, but outside the range of `0.0` through
`total`, the progress view pins the value to those limits, rounding to
the nearest possible bound. A value of `nil` represents indeterminate
progress, in which case the progress view ignores `total`.

This initializer creates a [`Text`](/documentation/SwiftUI/Text) view on your behalf. See
[`Text`](/documentation/SwiftUI/Text) for more information about localizing strings. To initialize a
determinate progress view with a string variable, use
the corresponding initializer that takes a `StringProtocol` instance.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)