Does anyone know if there is a way to use some kind shorthand in swift? more specifically, leaving out the braces in things like IF statements... eg
if num == 0
In swift you have to add braces even if there is just one statement in if:
if num == 0 { // Do something }
You cannot leave the braces, that how swift if statement work.