Skip to content

Instantly share code, notes, and snippets.

@mhijack
Created April 7, 2021 06:54
Show Gist options
  • Save mhijack/3f13cc3256edb625ef54a0628efc5392 to your computer and use it in GitHub Desktop.
Save mhijack/3f13cc3256edb625ef54a0628efc5392 to your computer and use it in GitHub Desktop.
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