diff --git a/iphone/Maps/Bookmarks/Catalog/DownloadedBookmarksViewController.swift b/iphone/Maps/Bookmarks/Catalog/DownloadedBookmarksViewController.swift index 58a3872f8b..6e049b4966 100644 --- a/iphone/Maps/Bookmarks/Catalog/DownloadedBookmarksViewController.swift +++ b/iphone/Maps/Bookmarks/Catalog/DownloadedBookmarksViewController.swift @@ -122,6 +122,7 @@ extension DownloadedBookmarksViewController: UITableViewDelegate { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let headerView = tableView.dequeueReusableHeaderFooterView(BMCCategoriesHeader.self) headerView.isShowAll = dataSource.allCategoriesHidden + headerView.title = L("guides_groups_cached") headerView.delegate = self return headerView } diff --git a/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift b/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift index d0c68f6b2c..5d78c77ccf 100644 --- a/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift +++ b/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift @@ -246,6 +246,7 @@ extension BMCViewController: UITableViewDelegate { case .categories: let categoriesHeader = tableView.dequeueReusableHeaderFooterView(BMCCategoriesHeader.self) categoriesHeader.isShowAll = viewModel.areAllCategoriesHidden() + categoriesHeader.title = L("bookmarks_groups") categoriesHeader.delegate = self return categoriesHeader case .actions: return actionsHeader diff --git a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoriesHeader.swift b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoriesHeader.swift index 3ea1bcaa1f..368403002c 100644 --- a/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoriesHeader.swift +++ b/iphone/Maps/Bookmarks/Categories/Categories/BMCCategoriesHeader.swift @@ -7,7 +7,6 @@ final class BMCCategoriesHeader: UITableViewHeaderFooterView { didSet { label.font = .medium14() label.textColor = .blackSecondaryText() - label.text = L("bookmarks_groups").uppercased() } } @@ -27,6 +26,13 @@ final class BMCCategoriesHeader: UITableViewHeaderFooterView { } } + var title: String? { + didSet { + title = title?.uppercased() + label.text = title + } + } + var delegate: BMCCategoriesHeaderDelegate! @IBAction private func buttonAction() {