metatext/Extensions/CollectionItem+Extensions.swift

19 lines
449 B
Swift
Raw Normal View History

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