I can\'t believe that this question hasn\'t been asked yet, but I have been unable to find it so that is my assumption.
I have created custom UITableViewCel
UITableViewCel
In swift 4, the following code can be used for replacing the "Return button" on keyboard with "search button" or "done button":
yourTextField.returnKeyType = UIReturnKeyType.search yourTextField.returnKeyType = UIReturnKeyType.done