diff --git a/ios/FluentUI/TextField/FluentTextField.swift b/ios/FluentUI/TextField/FluentTextField.swift index 2db4a876fc..c6195a0bc4 100644 --- a/ios/FluentUI/TextField/FluentTextField.swift +++ b/ios/FluentUI/TextField/FluentTextField.swift @@ -93,6 +93,10 @@ public final class FluentTextField: UIView, UITextFieldDelegate, TokenizedContro } } + @objc public override var canBecomeFirstResponder: Bool { + textfield.canBecomeFirstResponder + } + // Hierarchy: // // imageTextStack @@ -153,6 +157,13 @@ public final class FluentTextField: UIView, UITextFieldDelegate, TokenizedContro } } + @discardableResult + @objc public override func becomeFirstResponder() -> Bool { + let didBecomeFirstResponder = textfield.becomeFirstResponder() + updateState() + return didBecomeFirstResponder + } + required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") }