The SDK provides objects that model the tcgdex data and a service to access them via.
The full API/SDK documentation in progress at API Documentation - TCGdex
Add https://github.com/tcgdex/tcgdex-swift as Package Dependency in XCode
import TCGDex
let api = TCGDex(lang: .English)
api.cards() // Fetch all cards
api.card(id: "id") // Fetch a card
api.sets() // Fetch all the sets
api.set(id: "id") // Fet a set
api.series() // Fetch all the series
api.serie(id: "id") // Fetch a serie