diff --git a/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift b/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift index 5d78c77ccf..6f65e55dbf 100644 --- a/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift +++ b/iphone/Maps/Bookmarks/Categories/BMCView/BMCViewController.swift @@ -8,13 +8,14 @@ final class BMCViewController: MWMViewController { @IBOutlet private weak var tableView: UITableView! { didSet { - tableView.registerNibs(cells: [ + let cells = [ BMCPermissionsCell.self, BMCPermissionsPendingCell.self, BMCCategoryCell.self, BMCActionsCreateCell.self, BMCNotificationsCell.self, - ]) + ] + tableView.registerNibs(cells) tableView.registerNibForHeaderFooterView(BMCCategoriesHeader.self) } } diff --git a/iphone/Maps/Categories/UITableView+Cells.swift b/iphone/Maps/Categories/UITableView+Cells.swift index 29e157dbd4..1835f6aae5 100644 --- a/iphone/Maps/Categories/UITableView+Cells.swift +++ b/iphone/Maps/Categories/UITableView+Cells.swift @@ -15,7 +15,7 @@ extension UITableView { register(UINib(cell), forCellReuseIdentifier: toString(cell)) } - func registerNibs(cells: [Cell.Type]) where Cell: UITableViewCell { + func registerNibs(_ cells: [Cell.Type]) where Cell: UITableViewCell { cells.forEach { registerNib(cell: $0) } }