Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
func login(_ username:String , _ password:String) -> Bool {
if username == "swift" && password == "1234"
{
return true
}else {
return false
}
}
print(login("swift", "1234"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment