From 5dcef670389a7a9d0295942c2ee5d7454fcb3f0e Mon Sep 17 00:00:00 2001 From: Mike Fikes Date: Sun, 14 Jan 2024 11:57:11 -0500 Subject: [PATCH] Use a different symbol other than _ for base unit (#150) --- Impedance Converter/Impedance Converter/UnitInputView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Impedance Converter/Impedance Converter/UnitInputView.swift b/Impedance Converter/Impedance Converter/UnitInputView.swift index 895778d..c7598d8 100644 --- a/Impedance Converter/Impedance Converter/UnitInputView.swift +++ b/Impedance Converter/Impedance Converter/UnitInputView.swift @@ -226,7 +226,7 @@ struct UnitInputView: View where UnitType: RawRepresentable & Hashable Button(action: { selectUnit(unitCase) }) { - Text(unitCase.shouldRender ? unitCase.rawValue : "_") + Text(unitCase.shouldRender ? unitCase.rawValue : unitCases.count == 1 ? "⏎" : "_") .foregroundColor(Color.baseSecondaryRed.adjusted(brightness: 1.5)) .fontWeight(unitCase == unit ? .bold : .regular) }