metatext/Extensions/CollectionItemKind+Extensions.swift

17 lines
371 B
Swift
Raw Normal View History

2020-09-23 01:00:56 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import ViewModels
extension CollectionItemIdentifier.Kind {
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
}
}
}