Welcome to the forum.
It is UIKit app (not SwiftUI ?)
Is it on device or simulator ?
You can add this func in your viewController:
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
self.view.endEditing(true)
return false
}
Tell if it works, then don't forget to close the thread by marking the correct answer.
Otherwise, could you show the complete attributes inspector for the TextField ? As well as its connections Inspector panel.
Topic:
Community
SubTopic:
Apple Developers
Tags: