set completion handler swift code example
Example: swift completion handler
func thisNeedsToFinishBeforeWeCanDoTheNextStep(completion: (String) -> ()) {
let stringToPassOutOfTheCompletionHandler = "The quick brown fox"
completion(stringToPassOutOfTheCompletionHandler)
}