Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Belouosv <aleksey@maps.me>2018-08-20 19:14:43 +0300
committerVlad Mihaylenko <vxmihaylenko@gmail.com>2018-08-24 17:19:26 +0300
commitc3f11ae4261327c75c28815d6cc4248b6ca42f10 (patch)
treed1f87d91b84032e75302ec729f0d2985920e1d0f
parentf4321701fcd5266fecd56d7f6ddba7f38c8e9f0c (diff)
[iOS] update downloaded categories title
-rw-r--r--iphone/Maps/Bookmarks/Catalog/DownloadedBookmarksViewController.swift1
-rw-r--r--iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift1
-rw-r--r--iphone/Maps/Bookmarks/Categories/Categories/BMCCategoriesHeader.swift8
3 files changed, 9 insertions, 1 deletions
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() {