Swiftpack.co - StarLard/StormGlassKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by StarLard.
StarLard/StormGlassKit 1.0.0-beta
A pure Swift SDK for consuming the official Storm Glass API
⭐️ 0
🕓 45 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/StarLard/StormGlassKit.git", from: "1.0.0-beta")


A pure Swift SDK for consuming the official StormGlass API


Currently only the Global & Marine Weather APIs are supported.


StormGlassKit is available through Swift Package Manager, a dependency manager built into Xcode.

If you are using Xcode 11 or higher, go to File / Swift Packages / Add Package Dependency... and enter package repository URL https://github.com/StarLard/StormGlassKit.git, then follow the instructions.

To remove the dependency, select the project and open Swift Packages (which is next to Build Settings). You can add and remove packages from this tab.

Swift Package Manager can also be used from the command line.


  1. In your application's application(_:didFinishLaunchingWithOptions:) method, configure StormGlassKit using one of the following methods:
    • Add a StormGlassKit-Configuration.plist file to your project that includes an "API_KEY" key with your API key as the value. You may then call StormGlassKit.configure().
    • Create and configure a custom StormGlassKit.Configuration and use it to call StormGlassKit.configure(with:).
  2. Get weather forcasts using the StormGlassKit.fetchWeather(...) method. StormGlassKit provides APIs for both Combine and Swift concurrency's async/await pattern. The returned value will contain a Weather type which contains the requested forecast, organized by hour, and the associated meta data.




StormGlassKit is available under the Apache 2.0 license. See the LICENSE file for more info.


Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Beta 1
1 year ago

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