crewshin/CoinGecko-Swift

Getting Started
Swift Package Manager (Xcode 11 and above)
- Select
File/Swift Packages/Add Package Dependencyfrom the menu. - Paste
https://github.com/crewshin/CoinGecko-Swift.git.
Why not CocoaPods, or Carthage?
Supporting multiple dependency managers makes maintaining a library exponentially more complicated and time consuming. Furthermore, with the integration of the Swift Package Manager in Xcode 11 and greater, I expect the need for alternative solutions to fade quickly.
Usage
import CoinGeckoCreate an instance of CoinGecko:
let gecko = CoinGecko(api: .main)Then:
gecko.ping() { (result) in
switch result {
case .failure(let error):
if case let APIError.generic(message) = error {
print(message)
}
case .success(let response):
if let value = response.value {
print(value)
}
}
}
Feel free to say hi on Discord: crewshin#3286
Package Metadata
Repository: crewshin/CoinGecko-Swift
Stars: 1
Forks: 2
Open issues: 1
Default branch: main
Primary language: swift
License: MIT
README: README.md