Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andynovak12/4e781e9c77997cd6c24f1e3534cd2b20 to your computer and use it in GitHub Desktop.
Save andynovak12/4e781e9c77997cd6c24f1e3534cd2b20 to your computer and use it in GitHub Desktop.
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