mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Position precision slider cleanup
This commit is contained in:
parent
530872e50f
commit
b962c68ac2
2 changed files with 8 additions and 8 deletions
|
|
@ -148,7 +148,7 @@ struct ChannelForm: View {
|
|||
.listRowSeparator(.visible)
|
||||
.onChange(of: preciseLocation) { _, pl in
|
||||
if pl == false {
|
||||
positionPrecision = 14
|
||||
positionPrecision = 15
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -157,11 +157,11 @@ struct ChannelForm: View {
|
|||
VStack(alignment: .leading) {
|
||||
Label("Approximate Location", systemImage: "location.slash.circle.fill")
|
||||
|
||||
Slider(value: $positionPrecision, in: 11...14, step: 1) {
|
||||
Slider(value: $positionPrecision, in: 12...15, step: 1) {
|
||||
} minimumValueLabel: {
|
||||
Image(systemName: "minus")
|
||||
} maximumValueLabel: {
|
||||
Image(systemName: "plus")
|
||||
} maximumValueLabel: {
|
||||
Image(systemName: "minus")
|
||||
}
|
||||
Text(PositionPrecision(rawValue: Int(positionPrecision))?.description ?? "")
|
||||
.foregroundColor(.gray)
|
||||
|
|
@ -228,7 +228,7 @@ struct ChannelForm: View {
|
|||
.onChange(of: positionsEnabled) { _, pe in
|
||||
if pe {
|
||||
if positionPrecision == 0 {
|
||||
positionPrecision = 14
|
||||
positionPrecision = 15
|
||||
}
|
||||
} else {
|
||||
positionPrecision = 0
|
||||
|
|
|
|||
|
|
@ -130,11 +130,11 @@ struct MQTTConfig: View {
|
|||
Text("To comply with privacy laws like CCPA and GDPR, we avoid sharing exact location data. Instead, we use anonymized or approximate (imprecise) location information to protect your privacy.")
|
||||
.foregroundColor(.gray)
|
||||
.font(.callout)
|
||||
Slider(value: $mapPositionPrecision, in: 11...14, step: 1) {
|
||||
Slider(value: $mapPositionPrecision, in: 12...15, step: 1) {
|
||||
} minimumValueLabel: {
|
||||
Image(systemName: "minus")
|
||||
} maximumValueLabel: {
|
||||
Image(systemName: "plus")
|
||||
} maximumValueLabel: {
|
||||
Image(systemName: "minus")
|
||||
}
|
||||
Text(PositionPrecision(rawValue: Int(mapPositionPrecision))?.description ?? "")
|
||||
.foregroundColor(.gray)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue