Skip to content

getCards in Set

Latest
Compare
Choose a tag to compare
@bmbowdish bmbowdish released this 30 Jul 17:43
6ba0779

You can now retrieve an array of CardLists which contain all of the cards in a set.

Set.getCards() -> [CardList?] (an array of CardLists which each contain a portion of a set)

Ex.

import Swiftfall
do {
    let set = try Swiftfall.getSet(code: "PRM")
    let cards = set.getCards()
} catch {
    print(error)
}

Additionally in implementing this feature we made some changes so that we can implement things like the search feature or just giving Swiftfall a URL you'd like to make a request from. These things have other issues, but were much closer to getting them done.