Contents

cruisea-app/stormglass-swift

A Swift package for interacting with the Storm Glass API

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!)
}

Package Metadata

Repository: cruisea-app/stormglass-swift

Homepage: https://stormglass.io/

Stars: 1

Forks: 0

Open issues: 1

Default branch: main

Primary language: swift

License: MIT

Topics: cruise, marine, ocean, stormglass, stormglass-api, swift, swift-package, weather

README: README.md