Swiftpack.co - zunda-pixel/LicenseProvider as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by zunda-pixel.
zunda-pixel/LicenseProvider 1.1.2
Generate License List that Project depends on.
⭐️ 7
🕓 2 weeks ago
iOS macOS watchOS tvOS macCatalyst
.package(url: "https://github.com/zunda-pixel/LicenseProvider.git", from: "1.1.2")

LicensePlugin

Generate License List that Project depends on.

Support Swift 5.7

// Package.swift
let package = Package(
  name: "SampleKit",
  products: [
    .library(
      name: "SampleKit",
      targets: ["SampleKit"]
    )
  ],
  targets: [
    .target(
      name: "SampleKit",
      plugins: [
        .plugin(name: "LicenseProviderPlugin", package: "LicenseProvider"),
      ]
    )
  ]
)
import SwiftUI

struct LicenseView: View {
  var body: some View {
    NavigationStack {
      List {
        ForEach(LicenseProvider.packages) { package in
          NavigationLink(package.name) {
            VStack {
              Link("URL", destination: package.location)
              Text(package.license)
            }
            .navigationTitle(package.name)
          }
        }
      }
    }
  }
}

GitHub

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

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