Gauge
線形と円形のアクセサリースタイルに対応した、ネイティブ SwiftUI Gauge です。
#インポート
@quickgui/solid/swift-ui から Gauge をインポートします。
import { Host, Gauge } from "@quickgui/solid/swift-ui";#使い方
<Host matchContents>
<Gauge
value={storageUsed()}
min={0}
max={100}
label="Storage"
currentValueLabel={String(storageUsed()) + "%"}
style="accessoryCircularCapacity"
/>
</Host>#API リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
Gauge
ソースを見るGauge(props: GaugeProps): NativeNodetestIDstring—
modifiersViewModifier[]—
valuenumber—
minnumber—
maxnumber—
labelstring—
currentValueLabelstring—
Declares currentValueLabel (optional). Reactive JSX expressions update this property in place.
stringソースを見るminimumValueLabelstring—
Declares minimumValueLabel (optional). Reactive JSX expressions update this property in place.
stringソースを見るmaximumValueLabelstring—
Declares maximumValueLabel (optional). Reactive JSX expressions update this property in place.
stringソースを見るstyleGaugeStyle—
Layout, typography, paint, and interaction-state styles. Arrays merge left to right.
GaugeStyleソースを見るref((node: NativeNode) => void) | NativeNode—
Declares ref (optional). Reactive JSX expressions update this property in place.
((node: NativeNode) => void) | NativeNodeソースを見る