Catalog Item Details
let catalogItem = catalog.groups[0].items[0]
Traveler.fetchCatalogItemDetails(catalogItem) { (details, error) in
}Traveler.fetchCatalogItemDetails(catalogItem, delegate: self)extension MyViewController: CatalogItemDetailsFetchDelegate {
func catalogItemDetailsFetchDidSucceedWith(_ result: CatalogItemDetails) }
}
func catalogItemDetailsFetchDidFailWith(_ error: Error) {
}
}let storyboard = UIStoryboard(name: "CatalogItem", bundle: Bundle(for: CatalogItemViewController.self))
if let vc = storyboard.instantiateInitialViewController() {
present(vc, animated: true)
}Last updated