Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Remove duplicate axis labels from motion panels

Phineas Guo50751538c2c3
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneMotionView.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneMotionView.swift
index 98f3cfbf..c6d6b87b 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneMotionView.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneMotionView.swift
@@ -122,6 +122,7 @@ struct VPhoneMotionAxisRow: View {
Text(VPhoneLocalization.text(sensor.axes[index]))
.font(.system(.body, design: .monospaced))
TextField(VPhoneLocalization.text(sensor.axes[index]), text: $text)
+ .labelsHidden()
.textFieldStyle(.roundedBorder)
.font(.system(.body, design: .monospaced))
.accessibilityLabel(VPhoneLocalization.text(sensor.axes[index]))