Skip to content

Instantly share code, notes, and snippets.

@Mintri1199
Created May 14, 2019 07:39
Show Gist options
  • Save Mintri1199/e9b9c259337d0121248ef25518302524 to your computer and use it in GitHub Desktop.
Save Mintri1199/e9b9c259337d0121248ef25518302524 to your computer and use it in GitHub Desktop.
// New network call
fileprivate func callKeywordApi() {
NetworkManager().newGetKeywords { (result) in
switch result {
case .success(let keywords):
self.listOfKeywords = keywords
case .failure(let error):
print(error.localizedDescription)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment