From 0573b07e1ce870876fb255e3cf3baf12a52cc80f Mon Sep 17 00:00:00 2001 From: k3y0708 Date: Tue, 2 Jul 2024 17:59:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Decimal=20Numbers=20are=20now=20?= =?UTF-8?q?possible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AboTracker/views/AddSubscriptionView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AboTracker/views/AddSubscriptionView.swift b/AboTracker/views/AddSubscriptionView.swift index b130dab..a2a7bf0 100644 --- a/AboTracker/views/AddSubscriptionView.swift +++ b/AboTracker/views/AddSubscriptionView.swift @@ -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)") }