From b3d800ab4a2b7237742845ee8465d79b5d6ea663 Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Wed, 11 Dec 2024 13:46:58 +0400 Subject: [PATCH] [ios] Remove a separator from LayersVC Separator should be visible only for the Layers + Menu and hidden for the Layers only. Signed-off-by: Kiryl Kaveryn --- .../UI/BottomMenu/Menu/BottomMenuPresenter.swift | 3 +++ .../Menu/Cells/BottomMenuLayersCell.xib | 15 --------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/iphone/Maps/UI/BottomMenu/Menu/BottomMenuPresenter.swift b/iphone/Maps/UI/BottomMenu/Menu/BottomMenuPresenter.swift index 2c93232a31..114e938af6 100644 --- a/iphone/Maps/UI/BottomMenu/Menu/BottomMenuPresenter.swift +++ b/iphone/Maps/UI/BottomMenu/Menu/BottomMenuPresenter.swift @@ -87,6 +87,9 @@ extension BottomMenuPresenter { case .layers: let cell = tableView.dequeueReusableCell(cell: BottomMenuLayersCell.self)! cell.onClose = { [weak self] in self?.onClosePressed() } + if sections.count > 1 { + cell.addSeparator(.bottom) + } return cell case .items: let cell = tableView.dequeueReusableCell(cell: BottomMenuItemCell.self)! diff --git a/iphone/Maps/UI/BottomMenu/Menu/Cells/BottomMenuLayersCell.xib b/iphone/Maps/UI/BottomMenu/Menu/Cells/BottomMenuLayersCell.xib index 0937eb4a9f..e017f87d74 100644 --- a/iphone/Maps/UI/BottomMenu/Menu/Cells/BottomMenuLayersCell.xib +++ b/iphone/Maps/UI/BottomMenu/Menu/Cells/BottomMenuLayersCell.xib @@ -154,16 +154,6 @@ - - - - - - - - - - @@ -179,11 +169,6 @@ - - - - -