mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 17:50:59 +00:00
18 lines
449 B
Swift
18 lines
449 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import ViewModels
|
|
|
|
extension CollectionItem {
|
|
static let cellClasses = [StatusListCell.self, AccountListCell.self, LoadMoreCell.self]
|
|
|
|
var cellClass: AnyClass {
|
|
switch self {
|
|
case .status:
|
|
return StatusListCell.self
|
|
case .account:
|
|
return AccountListCell.self
|
|
case .loadMore:
|
|
return LoadMoreCell.self
|
|
}
|
|
}
|
|
}
|