Skip to content

rock-n-code/marvel-service

Repository files navigation

Marvel Service

A library written entirely with Swift that allow the developer to interact with the Marvel Comics API backend service.

Installation

To use this library, then add it as a dependency in the Package.swift file of your project:

let package = Package(
    // name, platforms, products, etc.
    dependencies: [
        .package(url: "https://github.com/rock-n-code/marvel-service", from: "1.1.0"),
        // other dependencies
    ],
    targets: [
        .target(
            name: "SomeTarget", 
            dependencies: [
                .product(name: "MarvelService", package: "marvel-service"),
            ]
        )
        // other targets
    ]
)

It is also possible to use this library with your app in Xcode, then add it as a dependency in your Xcode project.

important: Swift 5.10 or higher is required in order to compile this library.

Documentation

Please refer to the online documentation for further informations about this library.