<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GaugeStyle/accessoryLinearCapacity",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI10GaugeStylePA2A023AccessoryLinearCapacitycD0VRszrlE09accessoryfG0AEvpZ"
  },
  "title" : "accessoryLinearCapacity"
}
-->

# accessoryLinearCapacity

A gauge style that displays bar that fills from leading to trailing
edges as the gauge’s current value increases.

```
@MainActor @export(implementation) @preconcurrency static var accessoryLinearCapacity: AccessoryLinearCapacityGaugeStyle { get }
```

## Discussion

Apply this style to a [`Gauge`](/documentation/SwiftUI/Gauge) or to a view hierarchy that contains
gauges using the [`gaugeStyle(_:)`](/documentation/SwiftUI/View/gaugeStyle(_:)) modifier:

```
Gauge(value: batteryLevel, in: 0...100) {
    Text("Battery Level")
}
.gaugeStyle(.accessoryLinearCapacity)
```

If you provide `minimumValueLabel` and `maximumValueLabel`
parameters when you create the gauge, they appear on leading and
trailing edges of the bar, respectively. The `label` appears above
the gauge, and the `currentValueLabel` appears below.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)