Skip to content

Commit

Permalink
Add missing titles to text fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiu committed Sep 15, 2024
1 parent c39ab5c commit f11d6f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/SatsPrice/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f11d6f4

Please sign in to comment.