Catalog
Use this method to fetch a personalized catalog of purchasable items
let query = CatalogQuery()
Traveler.fetchCatalog(query: query) { (catalog, error) in
}Traveler.fetchCatalog(query: query, delegate: self)extension MyViewController: CatalogFetchDelegate {
func catalogFetchDidSucceedWith(_ result: Catalog) {
}
func catalogFetchDidFailWith(_ error: Error) {
}
}let catalogResultVC = CatalogResultViewController()
catalogResultVC.catalog = catalog
present(catalogResultVC, animated: true)Last updated