Просмотр исходного кода

fixes bug which prevented to enter decimal numbers

polscm32 aka Marvout 1 год назад
Родитель
Сommit
136343a09c
1 измененных файлов с 0 добавлено и 2 удалено
  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