metatext-app-ios-iphone-ipad/Extensions/CollectionItem+Extensions.s...

19 lines
449 B
Swift
Raw Normal View History

2020-09-23 03:00:56 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import ViewModels
2020-10-15 09:44:01 +02:00
extension CollectionItem {
static let cellClasses = [StatusListCell.self, AccountListCell.self, LoadMoreCell.self]
2020-09-23 03:00:56 +02:00
var cellClass: AnyClass {
switch self {
case .status:
return StatusListCell.self
case .account:
return AccountListCell.self
case .loadMore:
return LoadMoreCell.self
2020-09-23 03:00:56 +02:00
}
}
}