A SPM package to get all the information about other SPM packages.
The preferred way of installing PackageKit is via the Swift Package Manager.
- In Xcode, open your project and navigate to File → Add Package Dependencies...
- Paste the repository URL (
https://github.com/Mcrich23/PackageKit
) and click Next. - Click Add Package.
- Click Add Package again.
Disclaimer: You must copy Package.resolved
to the app or specify the path otherwise to use PackageKit.
Run PackageKit.getPackages()
import SwiftUI
import PackageKit
struct ContentView: View {
var body: some View {
Text("Hello World!")
.onAppear {
let packages = PackageKit.getPackages()
print(packages)
}
}
}
Right now, PackageKit only supports Github Swift Packages, but more git hosting software support is in the near future.