Swiftpack.co - bearjaw/MusicCore as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by bearjaw.
bearjaw/MusicCore 1.1.1
Shareable models for juice
⭐️ 0
🕓 3 years ago
.package(url: "https://github.com/bearjaw/MusicCore.git", from: "1.1.1")

📦 MusicCore

This Swift package contains the JSON Objects required to search songs using the Apple Music API.

Properties marked as optional are not necessarily present in the API response. All other properties that are not optional are required for GET or POST requests.

The entire API documentation can be found on the Apple docs site here

Overview

Currently MusicCore does not support all the objects defined yet (like EditorialNotes). The meta Property on most Types is also currently not supported but will be added soon.

You can use these Models in your iOS, macOS or even on your Server.

Classes

AppleMusicError
Artwork
PlayParam
Preview
Relationship
RelationshipData
Resource
ResponseRoot

Usage

Swift Package Manager

This package supports the Swift Package Manager. Add this line to your Package.swift file:

.package(url: "https://github.com/bearjaw/MusicCore.git", from: "1.1.1")

Then add the package as a dependency to the target you want to include it in

.product(name: "MusicCore", package: "MusicCore")

and then simply import it in your project import MusicCore 🎉.

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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