|
@@ -81,10 +81,6 @@ public struct TextFieldWithToolBar: UIViewRepresentable {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public func updateUIView(_ textField: UITextField, context: Context) {
|
|
public func updateUIView(_ textField: UITextField, context: Context) {
|
|
|
- if textField.isFirstResponder {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
if text != 0 {
|
|
if text != 0 {
|
|
|
let newText = numberFormatter.string(for: text) ?? ""
|
|
let newText = numberFormatter.string(for: text) ?? ""
|
|
|
if textField.text != newText {
|
|
if textField.text != newText {
|