Skip to content

ProgressView

A determinate or indeterminate native SwiftUI progress indicator.

#Import

Import ProgressView from @quickgui/solid/swift-ui.

import { Host, ProgressView } from "@quickgui/solid/swift-ui";

#Usage

<Host matchContents={{ vertical: true }} style={{ width: 320 }}>
  <ProgressView
    value={completed()}
    total={100}
    label="Exporting"
    currentValueLabel={String(completed()) + "%"}
  />
</Host>

#API reference

Expand an entry for its description and complete signature. A dash means no declaration default is documented.

ProgressView

View source
ProgressView(props: ProgressViewProps): NativeNode
testIDstring—

Stable identifier exposed to macOS accessibility and UI testing.

string
View source
modifiersViewModifier[]—

SwiftUI modifiers, applied in array order.

ViewModifier[]
View source
valuenumber—

Omit for an indeterminate progress indicator.

number
View source
totalnumber—

Declares total (optional). Reactive JSX expressions update this property in place.

number
View source
labelstring—

Declares label (optional). Reactive JSX expressions update this property in place.

string
View source
currentValueLabelstring—

Declares currentValueLabel (optional). Reactive JSX expressions update this property in place.

string
View source
ref((node: NativeNode) => void) | NativeNode—

Declares ref (optional). Reactive JSX expressions update this property in place.

((node: NativeNode) => void) | NativeNode
View source