fun Gauge(value: Double, bounds: ClosedFloatingPointRange<Double>, modifier: Modifier = Modifier, content: @Composable () -> Unit)Overview
Gauge(value = 0.0, bounds = ClosedFloatingPointRange.…) { … }This is the Kotlin form of SwiftUI Gauge.init(value:in:label:): SwiftUI documentation. In Swift it reads:
nonisolated init<V>(value: V, in bounds: ClosedRange<V> = 0...1, @ContentBuilder label: () -> Label) where CurrentValueLabel == EmptyView, BoundsLabel == EmptyView, MarkedValueLabels == EmptyView, V : BinaryFloatingPointTopics
Creating a Gauge
fun Gauge(value: Double, bounds: ClosedFloatingPointRange<Double>, modifier: Modifier = Modifier, label: @Composable () -> Unit, currentValueLabel: @Composable () -> Unit, markedValueLabels: @Composable () -> Unit)
fun Gauge(value: Double, bounds: ClosedFloatingPointRange<Double>, modifier: Modifier = Modifier, label: @Composable () -> Unit, currentValueLabel: @Composable () -> Unit, minimumValueLabel: @Composable () -> Unit, maximumValueLabel: @Composable () -> Unit, markedValueLabels: @Composable () -> Unit)
fun Gauge(value: Double, bounds: ClosedFloatingPointRange<Double>, modifier: Modifier = Modifier, label: @Composable () -> Unit, currentValueLabel: @Composable () -> Unit, minimumValueLabel: @Composable () -> Unit, maximumValueLabel: @Composable () -> Unit)
fun Gauge(value: Double, bounds: ClosedFloatingPointRange<Double>, modifier: Modifier = Modifier, label: @Composable () -> Unit, currentValueLabel: @Composable () -> Unit)
fun Gauge(value: Double, bounds: ClosedFloatingPointRange<Double>, modifier: Modifier = Modifier, content: @Composable () -> Unit)