forked from organicmaps/organicmaps
[iOS] fix deeplinks to catalog
This commit is contained in:
parent
5167980b98
commit
2c4662ff02
2 changed files with 5 additions and 6 deletions
|
@ -1,17 +1,16 @@
|
|||
struct CatalogCategoryInfo {
|
||||
var id: String
|
||||
var name: String
|
||||
var author: String
|
||||
var author: String?
|
||||
var productId: String?
|
||||
var imageUrl: String?
|
||||
|
||||
init?(_ components: [String : String]) {
|
||||
guard let id = components["id"],
|
||||
let name = components["name"],
|
||||
let author = components["author_name"] else { return nil }
|
||||
let name = components["name"] else { return nil }
|
||||
self.id = id
|
||||
self.name = name
|
||||
self.author = author
|
||||
author = components["author_name"]
|
||||
productId = components["tier"]
|
||||
imageUrl = components["img"]
|
||||
}
|
||||
|
|
|
@ -18,13 +18,13 @@ class PaidRouteViewController: MWMViewController {
|
|||
private let purchase: IPaidRoutePurchase
|
||||
private let statistics: IPaidRouteStatistics
|
||||
private let name: String
|
||||
private let author: String
|
||||
private let author: String?
|
||||
private let imageUrl: URL?
|
||||
|
||||
private var product: IStoreProduct?
|
||||
|
||||
init(name: String,
|
||||
author: String,
|
||||
author: String?,
|
||||
imageUrl: URL?,
|
||||
purchase: IPaidRoutePurchase,
|
||||
statistics: IPaidRouteStatistics) {
|
||||
|
|
Loading…
Add table
Reference in a new issue