PackageKit

1.0.2

Get the swift packages in your xcode project in real time.
Mcrich23/PackageKit

What's New

1.0.2

2023-11-06T06:53:48Z
  • Downgraded to Swift 5.7

PackageKit

A SPM package to get all the information about other SPM packages.

Installation

The preferred way of installing PackageKit is via the Swift Package Manager.

  1. In Xcode, open your project and navigate to FileAdd Package Dependencies...
  2. Paste the repository URL (https://github.com/Mcrich23/PackageKit) and click Next.
  3. Click Add Package.
  4. Click Add Package again.

Usage

Disclaimer: You must copy Package.resolved to the app or specify the path otherwise to use PackageKit.

Getting the packages in your project

Run PackageKit.getPackages()

Example:

import SwiftUI
import PackageKit

struct ContentView: View {
    var body: some View {
        Text("Hello World!")
            .onAppear {
                let packages = PackageKit.getPackages()
                print(packages)
            }
    }
}

Limitations

Right now, PackageKit only supports Github Swift Packages, but more git hosting software support is in the near future.

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 08:41:01 GMT-0900 (Hawaii-Aleutian Daylight Time)