how to set return type swift code example
Example 1: swift how to call a function
//function trying to be called
func aFunction() {
print("called function")
}
//call function like this
aFunction()
Example 2: how to set return type swift
func aFunction() -> {
return
}
//call function like this
aFunction()