Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func validateUserInput() {
- guard let userName = txtUserName.text else {
- show("UserName should not be empty.")
- return
- }
- guard let password = txtPassword.text else {
- show("Password should not be empty.")
- return
- }
- guard let accountNo = txtAccountNo.text else {
- show("Account Number should not be empty.")
- return
- }
- validateAccountDetails(userName, password, accountNo)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement