Swiftpack.co - Package - jeffctown/XcodeReleasesKit

XcodeReleasesKit

XcodeReleasesKit represents Xcode Releases model objects and loads them.

Platform

Swift Version GitHub license

Integration

Swift Package Manager

You can use The Swift Package Manager to install XcodeReleasesKit by adding the proper description to your Package.swift file:

// swift-tools-version:5.1
import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/jeffctown/XcodeReleasesKit.git", from: "1.0.0"),
    ]
)

Usage

Loading Xcode Releases

let loader = try! XcodeReleasesLoader(url: "https://xcodereleases.com/data.json")
loader.releases.sink(receiveCompletion: { completion in
	switch completion {
	case .finished: 
		print("Yay")
	case .failure(let error):
		print("Oh No! \(error)")
	}
}, receiveValue: { releases in
    print("Releases Received: \(releases.count)")
}).store(in: &cancellables)

Github

link
Stars: 0

Dependencies

Used By

Total: 0