Created
April 7, 2021 06:54
-
-
Save mhijack/3f13cc3256edb625ef54a0628efc5392 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func handleGetUsers() { | |
getUsers { (userListResponse) in | |
switch userListResponse { | |
case .Success(let userData): | |
/// Handle user data with userData.users | |
case .Fail(let error): | |
/// Handle failure with error.message or error.code | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment