From 5433ca59ccd15d9cc03c2995cf427e05237cc0b8 Mon Sep 17 00:00:00 2001 From: narwalayush4 <96654849+narwalayush4@users.noreply.github.com> Date: Mon, 23 Sep 2024 23:41:05 +0530 Subject: [PATCH] [ios] Fix: New bookmark list placement Signed-off-by: narwalayush4 <96654849+narwalayush4@users.noreply.github.com> --- .../Categories/BMCViewModel/BMCDefaultViewModel.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift b/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift index bc96e12c38..42baa86d67 100644 --- a/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift +++ b/iphone/Maps/Bookmarks/Categories/BMCViewModel/BMCDefaultViewModel.swift @@ -128,8 +128,8 @@ extension BMCDefaultViewModel { return } - categories.append(manager.category(withId: manager.createCategory(withName: name))) - view?.insert(at: [IndexPath(row: categories.count - 1, section: section)]) + categories.insert(manager.category(withId: manager.createCategory(withName: name)), at: 0) + view?.insert(at: [IndexPath(row: 0, section: section)]) } func deleteCategory(at index: Int) {