to be 100% storyboard based, you can remove those 2 lines, add a tap gesture widget and linked it to (IBAction)passwordTap