[release-81-fixes] [ios] Added swift method overloading.

This commit is contained in:
Ilya Grechuhin 2018-02-21 13:25:51 +03:00 committed by Aleksandr Zatsepin
parent 1d37095bb0
commit cdab751d2e
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ final class BMCDefaultViewModel: NSObject {
}
private func setCategories() {
categories = BM.categoriesIdList().map { categoryId -> BMCCategory in
categories = BM.groupsIdList().map { categoryId -> BMCCategory in
let title = BM.getCategoryName(categoryId)!
let count = BM.getCategoryMarksCount(categoryId) + BM.getCategoryTracksCount(categoryId)
let isVisible = BM.isCategoryVisible(categoryId)

View file

@ -1,5 +1,5 @@
extension MWMBookmarksManager {
static func categoriesIdList() -> [MWMMarkGroupID] {
@nonobjc static func groupsIdList() -> [MWMMarkGroupID] {
return groupsIdList().map { $0.uint32Value }
}
}