---
title: accessoryLinear
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/gaugestyle/accessorylinear
---

# accessoryLinear

A gauge style that displays bar with a marker that appears at a point along the bar to indicate the gauge’s current value.

## Declaration

```swift
@MainActor @preconcurrency static var accessoryLinear: AccessoryLinearGaugeStyle { get }
```

## Discussion

Discussion Apply this style to a Gauge or to a view hierarchy that contains gauges using the gaugeStyle(_:) modifier: Gauge(value: batteryLevel, in: 0...100) {     Text("Battery Level") } .gaugeStyle(.accessoryLinear) If you provide minimumValueLabel and maximumValueLabel parameters when you create the gauge, they appear on leading and trailing edges of the bar, respectively. Otherwise, the gauge displays the currentValueLabel value on the leading edge.

## See Also

### Getting linear gauge styles

- [linear](swiftui/gaugestyle/linear.md)
- [linearCapacity](swiftui/gaugestyle/linearcapacity.md)
- [accessoryLinearCapacity](swiftui/gaugestyle/accessorylinearcapacity.md)
