D
Size: a a a
D
AS
tableView(
_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let sectionType = sections[indexPath.section]
switch sectionType {
case .searchBar:
let cell = tableView.dequeueReusableCell(withIdentifier: SearchBarTableViewCell.reuseIdentifier)
as! SearchBarTableViewCell
cell.configure(delegate:
self)
return cell
case .categories:
let cell = tableView.dequeueReusableCell(withIdentifier: SearchCategoriesTableViewCell.reuseIdentifier)
as! SearchCategoriesTableViewCell
cell.configure(categoryViewModels: viewModel.categoriesCellsViewModels, subCategoryViewModels: viewModel.subCategoriesCellsViewModels, delegate:
self)
return cell
case .consultants:
// let cell = tableView.dequeueReusableCell(withIdentifier: SearchFavoriteConsultantsTableViewCell.reuseIdentifier) as! SearchFavoriteConsultantsTableViewCell
let cell = UITableViewCell()
cell.textLabel?.text = "Ячейка"
return cell
}
}
DA
ОЕ
12
OS
YК
OS
KS
OS
YК
ОЕ
В
KS
class func verifySubscriptions(
ofType type: SubscriptionType,
productIds: Set<String>,
inReceipt receipt: ReceiptInfo,
validUntil date: Date = Date()