---
title: "init(value:total:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/progressview/init(value:total:)"
---

# init(value:total:)

Creates a progress view for showing determinate progress.

## Declaration

```swift
nonisolated init<V>(value: V?, total: V = 1.0) where Label == EmptyView, CurrentValueLabel == EmptyView, V : BinaryFloatingPoint
```

## Parameters

- `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

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.

## See Also

### Creating a determinate progress view

- [init(_:)](swiftui/progressview/init(_:)-l5vj.md)
- [init(_:value:total:)](swiftui/progressview/init(_:value:total:).md)
- [init(value:total:label:)](swiftui/progressview/init(value:total:label:).md)
- [init(value:total:label:currentValueLabel:)](swiftui/progressview/init(value:total:label:currentvaluelabel:).md)
