Check out example codes for "how to set return type swift". It will help you in understanding the concepts better.

Code Example 1

//function trying to be called

func aFunction() {
	print("called function")
}

//call function like this

aFunction()

Code Example 2

func aFunction() -> <RETURN_TYPE> {
	return <RETURN_TYPE>
}

//call function like this
aFunction()

Learn ReactJs, React Native from akashmittal.com