StormGlass

1.0.0

A Swift package for interacting with the Storm Glass API
cruisea-app/stormglass-swift

What's New

First Release

2021-08-14T14:58:30Z

Tests have been added validating all endpoints requests and responses

Storm Glass for Swift

Global high-resolution weather forecasts directly from the world’s most trusted meteorological institutions.

In order to use this package, you will first need to obtain an API key from Storm Glass.

Installation

Add package to your Xcode project using Swift Package Manager.

Usage

// Step 1:
// Configure API Key

SGConfiguration.shared.apiKey = "your-api-key"

// Step 2:
// Create Endpoint Request

import StormGlass
let endpoint = SGWeatherPointRequest(... parameters)

// Step 3:
// Create Networking Request

let request = SGRequest(endpoint: endpoint)

// Step 4:
// Execute

request.fetch { result in
    // Step 5:
    // Handle Result...
    
    // (psst, this is where you put your code using the data!)
}

TODO

Tests are yet to be written. Recommended against using in any production app until this has been done.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Jan 30 2023 03:14:32 GMT-0500 (GMT-05:00)