diff --git a/FreeAPS/Sources/Modules/OverrideProfilesConfig/View/OverrideProfilesRootView.swift b/FreeAPS/Sources/Modules/OverrideProfilesConfig/View/OverrideProfilesRootView.swift index de691d474..a43883b0e 100644 --- a/FreeAPS/Sources/Modules/OverrideProfilesConfig/View/OverrideProfilesRootView.swift +++ b/FreeAPS/Sources/Modules/OverrideProfilesConfig/View/OverrideProfilesRootView.swift @@ -72,6 +72,14 @@ extension OverrideProfilesConfig { } Section { VStack { + Spacer() + Text("\(state.percentage.formatted(.number)) %") + .foregroundColor( + state + .percentage >= 130 ? .red : + (isEditing ? .orange : .blue) + ) + .font(.largeTitle) Slider( value: $state.percentage, in: 10 ... 200, @@ -80,13 +88,6 @@ extension OverrideProfilesConfig { isEditing = editing } ).accentColor(state.percentage >= 130 ? .red : .blue) - Text("\(state.percentage.formatted(.number)) %") - .foregroundColor( - state - .percentage >= 130 ? .red : - (isEditing ? .orange : .blue) - ) - .font(.largeTitle) Spacer() Toggle(isOn: $state._indefinite) { Text("Enable indefinitely")