From 0d25fb1c48544d3f11efcc987e11722183ed6622 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Thu, 7 Jul 2022 16:57:21 +1000 Subject: [PATCH] wip: add headers for different status --- .../DocumentTitleViewController.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Session/Media Viewing & Editing/DocumentTitleViewController.swift b/Session/Media Viewing & Editing/DocumentTitleViewController.swift index 820e2eabb..08b544d21 100644 --- a/Session/Media Viewing & Editing/DocumentTitleViewController.swift +++ b/Session/Media Viewing & Editing/DocumentTitleViewController.swift @@ -275,7 +275,15 @@ public class DocumentTileViewController: UIViewController, UITableViewDelegate, } public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { - return 50 + let section: MediaGalleryViewModel.SectionModel = self.viewModel.galleryData[section] + + switch section.model { + case .emptyGallery, .loadOlder, .loadNewer: + return MediaTileViewController.loadMoreHeaderHeight + + case .galleryMonth: + return 50 + } } }