This function will help you get a random true or false boolean value.
func randomBool() -> Bool {
return arc4random_uniform(2) == 0 ? true : false
}



Swift: Do Try Catch
I've discovered that there are really two ways to accomplish a Try/Catch strategy in Swift. The first example is technically correct but the "shorthand&...
Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email