I noticed the first argument of TextField takes in a "title", but to me, this string is never used. I don't see it displayed on the simulator.
I suspected maybe it is just as a unique ID for that TextField, but it's not because I duplicated it and it build. Plus the "title" name doesn't really match that description.
I was wondering what the purpose of the parameter was or how to access it for display? Thanks!
struct ContentView: View {
@State private var checkAmount = 0
var body: some View {
NavigationView {
Form {
Section {
TextField("Check amount", value: $checkAmount, format: .currency(code: Locale.current.currencyCode ?? "USD"))
}
Section {
Text("Input")
}
} .navigationTitle("Tabshare")
}
}
}
