I have a login view that I want to automatically submit when the user presses enter. There are two fields, username and password and a login UIButton which "submits" the form. All work fine, however I want the form to submit when the user press enter also.
I have seen Xcode set default button on enter when making a form but it is for Obj-c and the accepted answer which is "You set the Key Equivalent value for your button in IB. Just click on that field in the attributes inspector and press the enter key." is apparently for an older version of Xcode as I can't find a "Key Equivalent" field in the attributes inspector for the button or enclosing views.
Please show me how in either IB or swift 2 code.
Thanks in advance.