swift 4 migration

This commit is contained in:
Ryan Nystrom
2017-10-07 14:46:10 +01:00
parent 8d6f0ab118
commit 1c38ff4d5c
55 changed files with 617 additions and 516 deletions

View File

@@ -55,11 +55,12 @@ ListBindingSectionControllerDataSource {
_ sectionController: ListBindingSectionController<ListDiffable>,
cellForViewModel viewModel: Any,
at index: Int
) -> UICollectionViewCell {
) -> UICollectionViewCell & ListBindable {
guard let context = self.collectionContext else { fatalError("Missing context") }
let cellClass: AnyClass = CellTypeForComment(viewModel: viewModel)
let cell = context.dequeueReusableCell(of: cellClass, for: self, at: index)
guard let cell = context.dequeueReusableCell(of: cellClass, for: self, at: index) as? UICollectionViewCell & ListBindable
else { fatalError("Cell not bindable") }
ExtraCommentCellConfigure(
cell: cell,