本文へスキップ

ProgressView

確定または不確定のネイティブ SwiftUI 進捗インジケーターです。

#インポート

@quickgui/solid/swift-ui から ProgressView をインポートします。

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

#使い方

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

#API リファレンス

項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。

ProgressView

ソースを見る
ProgressView(props: ProgressViewProps): NativeNode
testIDstring—

Stable identifier exposed to macOS accessibility and UI testing.

string
ソースを見る
modifiersViewModifier[]—

SwiftUI modifiers, applied in array order.

ViewModifier[]
ソースを見る
valuenumber—

Omit for an indeterminate progress indicator.

number
ソースを見る
totalnumber—

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

number
ソースを見る
labelstring—

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

string
ソースを見る
currentValueLabelstring—

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

string
ソースを見る
ref((node: NativeNode) => void) | NativeNode—

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

((node: NativeNode) => void) | NativeNode
ソースを見る