Swiftpack.co -  FreeApp2014/SwiftyCM as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
FreeApp2014/SwiftyCM
A swift library for accessing SCM Archive API
.package(url: "https://github.com/FreeApp2014/SwiftyCM.git", from: "list")

SwiftyCM

A Swift library for interacting with Smash Custom Music Archive API. Compatible with Linux and macOS.

Usage

This library can be imported into your project using SPM:

    .package(url:"https://github.com/FreeApp2014/SwiftyCM")

to your package.dependencies and dependencies: ["SwiftyCM"] in your main target.

Example usage

The following code prints all songs from a game that match the criteria

import Foundation
import SwiftyCM
do {
    let game = try Game("4771");
    var neededSongs: [Song] = [];
    for song in game.songs {
        if(song.secLength < 40 && song.secLength > 10){
            neededSongs.append(try song.resolveSong());
        }
    }
    for song in neededSongs {
        print(song.id, song.title);
    }

} catch {
    fatalError("API error");
}

Documentation

The documentation for this project can be built using jazzy. The pre-built documentation can be found in docs/ or on the Github Pages

GitHub

link
Stars: 3
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

2.0.0
5 weeks ago

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