Bladeren bron

fixes bug which prevented to enter decimal numbers

polscm32 aka Marvout 2 jaren geleden
bovenliggende
commit
136343a09c
1 gewijzigde bestanden met toevoegingen van 0 en 2 verwijderingen
  1. 0 2
      FreeAPS/Sources/Views/DecimalTextField.swift

+ 0 - 2
FreeAPS/Sources/Views/DecimalTextField.swift

@@ -77,8 +77,6 @@ public struct TextFieldWithToolBar: UIViewRepresentable {
     public func updateUIView(_ textField: UITextField, context: Context) {
     public func updateUIView(_ textField: UITextField, context: Context) {
         if text != 0 {
         if text != 0 {
             textField.text = numberFormatter.string(from: text as NSNumber)
             textField.text = numberFormatter.string(from: text as NSNumber)
-        } else {
-            textField.text = ""
         }
         }
         textField.placeholder = placeholder
         textField.placeholder = placeholder
         textField.textColor = textColor
         textField.textColor = textColor