Swiftpack.co - mauryaratan/lemonsqueezy-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mauryaratan.
mauryaratan/lemonsqueezy-swift 1.2.1
An Async Swift library for Lemon Squeezy 🍋
⭐️ 18
🕓 6 weeks ago
iOS macOS
.package(url: "https://github.com/mauryaratan/lemonsqueezy-swift.git", from: "1.2.1")

LemonSqueezy

An asynchronous Swift library for the Lemon Squeezy API.

Quick Start Guide

New LemonSqueezy instance must be initiated with Lemon Squeezy API Key. You may check Example app as a quickstart guide.

import LemonSqueezy

@main
struct Lemon_SqueezyApp: App {
    @StateObject var lemon = LemonSqueezy(LS_API_KEY)
    
    var body: some Scene {
        WindowGroup {
            ContentView()
                .environmentObject(lemon)
        }
    }
}

// Then use in any file by importing the following
@EnvironmentObject var lemon: LemonSqueezy

Documentation

You can find the full documentation in this repo's Wiki (auto-generated by SwiftDoc).

GitHub

link
Stars: 18
Last commit: 6 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

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