swift how to pass a type code example
Example: how to set return type swift
func aFunction() -> <RETURN_TYPE> {
return <RETURN_TYPE>
}
//call function like this
aFunction()
func aFunction() -> <RETURN_TYPE> {
return <RETURN_TYPE>
}
//call function like this
aFunction()