|
|
@ -275,9 +275,17 @@ public class DocumentTileViewController: UIViewController, UITableViewDelegate,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
|
|
|
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
|
|
|
|
|
|
|
let section: MediaGalleryViewModel.SectionModel = self.viewModel.galleryData[section]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch section.model {
|
|
|
|
|
|
|
|
case .emptyGallery, .loadOlder, .loadNewer:
|
|
|
|
|
|
|
|
return MediaTileViewController.loadMoreHeaderHeight
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case .galleryMonth:
|
|
|
|
return 50
|
|
|
|
return 50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class DocumentCell: UITableViewCell {
|
|
|
|
class DocumentCell: UITableViewCell {
|
|
|
|
|
|
|
|
|
|
|
|