Post

Replies

Boosts

Views

Activity

SwiftUI Gauge repeating current value instead of showing image
I have created a SwiftUI Gauge for use in a ClockKit Complication, but I am not specifying a minimumValueLabel or a maximumValueLabel - This results in the currentValueLabel being shown both in the centre of the gauge and at the bottom. The Image that I specified is not shown: @State var value:Double = 75 var body: some View {          Gauge(value: capacity, in: 0...100) {             Image(systemName: "square.and.arrow.up") 						.foregroundColor(self.endColour)         } currentValueLabel: {          	Text("\(value, specifier: "%.1f")")         }.gaugeStyle(CircularGaugeStyle(tint: Gradient(colors: [.orange,.green]))) } Can anyone else confirm this? Is it a bug?
3
0
880
Jun ’20