From f11d6f437a4f53f691a99411e9df921f99c3474a Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Sat, 14 Sep 2024 21:16:22 -0400 Subject: [PATCH] Add missing titles to text fields --- Sources/SatsPrice/ContentView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/SatsPrice/ContentView.swift b/Sources/SatsPrice/ContentView.swift index 9cf91dc..a40f085 100644 --- a/Sources/SatsPrice/ContentView.swift +++ b/Sources/SatsPrice/ContentView.swift @@ -62,7 +62,7 @@ public struct ContentView: View { #endif HStack { - TextField("", text: $satsViewModel.btcToCurrencyString) + TextField("1 BTC to \(satsViewModel.selectedCurrency.identifier)", text: $satsViewModel.btcToCurrencyString) .disabled(priceSource != .manual) #if os(iOS) || SKIP .keyboardType(.decimalPad) @@ -86,7 +86,7 @@ public struct ContentView: View { } Section { - TextField("", text: $satsViewModel.satsString) + TextField("Sats", text: $satsViewModel.satsString) #if os(iOS) || SKIP .keyboardType(.numberPad) #endif @@ -99,7 +99,7 @@ public struct ContentView: View { } Section { - TextField("", text: $satsViewModel.btcString) + TextField("BTC", text: $satsViewModel.btcString) #if os(iOS) || SKIP .keyboardType(.decimalPad) #endif @@ -112,7 +112,7 @@ public struct ContentView: View { } Section { - TextField("", text: $satsViewModel.currencyValueString) + TextField(satsViewModel.selectedCurrency.identifier, text: $satsViewModel.currencyValueString) #if os(iOS) || SKIP .keyboardType(.decimalPad) #endif