🐛 Decimal Numbers are now possible
This commit is contained in:
@@ -24,7 +24,7 @@ struct AddSubscriptionView: View {
|
|||||||
ForEach($payments) { $payment in
|
ForEach($payments) { $payment in
|
||||||
Section(header: Text("Payment")) {
|
Section(header: Text("Payment")) {
|
||||||
HStack {
|
HStack {
|
||||||
TextField("Amount", value: $payment.amount, formatter: NumberFormatter())
|
TextField("Amount", value: $payment.amount, format: .number)
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(Currency.euro.description)")
|
Text("\(Currency.euro.description)")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user