PS
Size: a a a
PS
PS
В
В
В
PS
В
В
В
В
В
В
PS
В
enum Cell {
case one(OneCellModel)
case two(TwoCellModel)
case three(ThreeCellModel)
var type: CellType {
switch self {
case .one: return .one
case .two: return .two
case .three: return .three
}
}
}
enum CellType: Int, Hashable {
case one
case two
case three
}
func findCellIndex(type: CellType) -> Int? {
return cells.firstIndex { $0.type == type }
}
PS
enum Cell {
case one(OneCellModel)
case two(TwoCellModel)
case three(ThreeCellModel)
var type: CellType {
switch self {
case .one: return .one
case .two: return .two
case .three: return .three
}
}
}
enum CellType: Int, Hashable {
case one
case two
case three
}
func findCellIndex(type: CellType) -> Int? {
return cells.firstIndex { $0.type == type }
}
И
S
AO
EM
S