🐛 Decimal Numbers are now possible

This commit is contained in:
2024-07-02 17:59:47 +02:00
parent de58ebd79c
commit 0573b07e1c

View File

@@ -24,7 +24,7 @@ struct AddSubscriptionView: View {
ForEach($payments) { $payment in
Section(header: Text("Payment")) {
HStack {
TextField("Amount", value: $payment.amount, formatter: NumberFormatter())
TextField("Amount", value: $payment.amount, format: .number)
Spacer()
Text("\(Currency.euro.description)")
}