Swiftpack.co -  cruisea-app/stormglass-swift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
cruisea-app/stormglass-swift
A Swift package for interacting with the Storm Glass API
.package(url: "https://github.com/cruisea-app/stormglass-swift.git", from: "1.0.0")

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

GitHub

link
Stars: 0
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

First Release
4 weeks ago

Tests have been added validating all endpoints requests and responses

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics