 import KGNPreferredFontManager
 
 private extension Selector {
-    static let textDidChange = #selector(UITextInputDelegate.textDidChange(_:))
+    static let textDidChange = #selector(TextField.textDidChange)
 }
 
 /// Subclass of `PreferredFontTextField`. This implementation also allows


        NotificationCenter.default().addObserver(
            self, selector: .textDidChange,
            name: NSNotification.Name.UITextFieldTextDidChange,
            object: self
        )
    }

        NotificationCenter.default().removeObserver(self)
    }

    @objc private func textDidChange() {
        self.updatePlaceholderAndAutoComplete()
    }

