Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using Mock Library Without ReactiveSwift Wrapper
// Simple Use of Asynchronous Library Function
mockAsyncFunction { (optionalReturnedString, optionalReturnedError) in
if let returnedString = optionalReturnedString {
print(returnedString)
} else if let returnedError = optionalReturnedError {
print(returnedError)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment