Procházet zdrojové kódy

remove uncommented code

polscm32 před 1 rokem
rodič
revize
41a533c5f6
1 změnil soubory, kde provedl 0 přidání a 10 odebrání
  1. 0 10
      Trio/Sources/Views/TextFieldWithToolBar.swift

+ 0 - 10
Trio/Sources/Views/TextFieldWithToolBar.swift

@@ -106,16 +106,6 @@ public struct TextFieldWithToolBar: View {
             .onChange(of: localText) { _, newValue in
                 handleTextChange(newValue)
             }
-//            .onChange(of: text) { _, newValue in
-//                if newValue == 0, localText.isEmpty {
-//                    // Keep empty state
-//                    return
-//                }
-//                let newText = numberFormatter.string(from: newValue as NSNumber) ?? ""
-//                if localText != newText {
-//                    localText = newText
-//                }
-//            }
             .onAppear {
                 if text != 0 {
                     localText = numberFormatter.string(from: text as NSNumber) ?? ""