Last active
May 7, 2018 15:51
-
-
Save andynovak12/4e781e9c77997cd6c24f1e3534cd2b20 to your computer and use it in GitHub Desktop.
Using Mock Library Without ReactiveSwift Wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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