Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Last active April 18, 2020 12:50
Show Gist options
  • Select an option

  • Save meyusufdemirci/c0cf5e8c836cd9beae9e26eb7fc3604f to your computer and use it in GitHub Desktop.

Select an option

Save meyusufdemirci/c0cf5e8c836cd9beae9e26eb7fc3604f to your computer and use it in GitHub Desktop.
class HomeController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
Services.avgPrice(symbol: "BTCUSDT") { result in
switch result {
case Result.success(let response):
// Handle successfull response
break
case Result.failure(let error):
// Handle error
break
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment