A Swift forecast.io API client.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requires iOS 8+
ForecastIOClient is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ForecastIOClient"
Import ForecastIOClient and add the following line to your func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
method:
ForecastIOClient.apiKey = "FORECAST-IO-API-KEY"
ForecastIOClient.sharedInstance.forecast(-75.6046300, longitude: -26.2090000) { (forecast, forecastAPICalls) -> Void in
// do something with forecast data
}
Peter Willsey, [email protected]
ForecastIOClient is available under the MIT license. See the LICENSE file for more info.