Latest 0.0.1
Homepage https://github.com/neonichu/Melody
License BSD
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0
Dependencies Decodable
Authors

A library for retrieving iTunes Music Store information.

Usage

You can search for albums or tracks and retrieve some model objects:

Melody().searchTracks("lucky") { (tracks, _) in
    if let track = tracks?.first {
        print("(track.name): (track.appleMusicUrl)")
    }
}

The appleMusicUrl will open directly in Music.app :tada:

Unit Tests

The tests require Conche, install it via Homebrew:

$ brew install --HEAD kylef/formulae/conche

and run the tests:

$ make test

Latest podspec

{
    "name": "Melody",
    "version": "0.0.1",
    "source_files": "Code/*.swift",
    "summary": "Generate Apple Music URLs for tracks.",
    "homepage": "https://github.com/neonichu/Melody",
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    },
    "authors": {
        "Boris Bu00fcgling": "[email protected]"
    },
    "social_media_url": "http://twitter.com/NeoNacho",
    "source": {
        "git": "https://github.com/neonichu/Melody.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "dependencies": {
        "Decodable": [
            "~> 0.3.2"
        ]
    },
    "test_specification": {
        "source_files": "Tests/*.swift",
        "dependencies": {
            "Spectre": [
                "~> 0.5.0"
            ]
        }
    }
}

Pin It on Pinterest

Share This