|
|
@ -181,8 +181,8 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryCe
|
|
|
|
owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx")
|
|
|
|
owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx")
|
|
|
|
return defaultView
|
|
|
|
return defaultView
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// TODO localize
|
|
|
|
let title = NSLocalizedString("GALLERY_TILES_LOADING_OLDER_LABEL", comment: "Label indicating loading is in progress")
|
|
|
|
sectionHeader.configure(title: "Loading older...")
|
|
|
|
sectionHeader.configure(title: title)
|
|
|
|
return sectionHeader
|
|
|
|
return sectionHeader
|
|
|
|
case kLoadNewerSectionIdx:
|
|
|
|
case kLoadNewerSectionIdx:
|
|
|
|
guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGalleryLoadingHeader.reuseIdentifier, for: indexPath) as? MediaGalleryLoadingHeader else {
|
|
|
|
guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGalleryLoadingHeader.reuseIdentifier, for: indexPath) as? MediaGalleryLoadingHeader else {
|
|
|
@ -190,8 +190,8 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryCe
|
|
|
|
owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx")
|
|
|
|
owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx")
|
|
|
|
return defaultView
|
|
|
|
return defaultView
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// TODO localize
|
|
|
|
let title = NSLocalizedString("GALLERY_TILES_LOADING_MORE_RECENT_LABEL", comment: "Label indicating loading is in progress")
|
|
|
|
sectionHeader.configure(title: "Loading newer...")
|
|
|
|
sectionHeader.configure(title: title)
|
|
|
|
return sectionHeader
|
|
|
|
return sectionHeader
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGallerySectionHeader.reuseIdentifier, for: indexPath) as? MediaGallerySectionHeader else {
|
|
|
|
guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGallerySectionHeader.reuseIdentifier, for: indexPath) as? MediaGallerySectionHeader else {
|
|
|
|