Contents

256Arts/SteamGridDB-Swift-API

This package allows you to fetch image resources for video games (such as Steam games).

Installation

To use this package, put the following in the dependencies of your Package.swift:

.package(url: "https://github.com/256Arts/SteamGridDB-Swift-API.git", from: "1.0.0")

Contents

import SteamGridDBSwiftAPI

// Configure database
let db = SteamGridDB(apiKey: "<YOUR KEY>")
db.includeAdultContent = true

// Fetch game info
let results = try await db.search(query: "<GAME NAME>")
let gameInfo = try await db.game(id: <GAME ID>)

// Fetch images
// Only game ID parameter is required, but there are many other optional parameters.
let gridImages = try await db.grids(for: <GAME ID>, dimensions: [.x512x512, .x1024x1024])
let heroImages = try await db.heroes(for: <GAME ID>, styles: [.blurred])
let logos = try await db.logos(for: <GAME ID>, limit: 20, page: 2)
let icons = try await db.icons(for: <GAME ID>)

Package Metadata

Repository: 256Arts/SteamGridDB-Swift-API

Stars: 0

Forks: 0

Open issues: 0

Default branch: main

Primary language: swift

Topics: ios

README: README.md