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): NativeNodetestIDstring—
modifiersViewModifier[]—
valuenumber—
totalnumber—
labelstring—
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ソースを見る