Skip to content

Gauge

Shows a value within a range as a read-only capacity bar.

<Gauge ... />

Overview

SwiftUI Gauge with .linearCapacity; AppKit uses a continuous-capacity NSLevelIndicator, the control Finder and Disk Utility use for storage. as SwiftUI's linear capacity Gauge does; omitted, AppKit's own cell.

Topics

Properties

Name Type Required Description
value number required Current value between minValue and maxValue.
minValue number optional Lower bound, default 0.
maxValue number optional Upper bound, default 1.
tint string optional Semantic fill color.
thickness number optional Draws a capsule bar this many points tall,
accessibilityLabel string optional What the gauge measures.

Example

<Gauge value="0.42" tint="systemBlue" thickness="6" />

Platform notes

  • AppKit NSLevelIndicator. UIKit UIProgressView.

Source: lua/embedded/AppKit.lua:2055 (AppKit.Gauge)