[F] End editing on return

This commit is contained in:
Hykilpikonna
2021-01-27 19:37:13 -05:00
parent 580b8bdc2f
commit b900123a09
5 changed files with 51 additions and 16 deletions
+12
View File
@@ -269,3 +269,15 @@ extension UserDefaults
set { self[key] = newValue?.rawValue }
}
}
class EndEditingOnReturn: UIViewController, UITextFieldDelegate
{
/**
End editing on return
*/
func textFieldShouldReturn(_ scoreText: UITextField) -> Bool
{
self.view.endEditing(true)
return true
}
}