Przeglądaj źródła

fixes bug which prevented to enter decimal numbers

polscm32 aka Marvout 1 rok temu
rodzic
commit
136343a09c
1 zmienionych plików z 0 dodań i 2 usunięć
  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) {
         if text != 0 {
             textField.text = numberFormatter.string(from: text as NSNumber)
-        } else {
-            textField.text = ""
         }
         textField.placeholder = placeholder
         textField.textColor = textColor