[ios] Place newly created bookmarks list at the top

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2023-01-02 22:52:42 +01:00
parent 2c7c959b7d
commit b73d7cd6a1

View file

@ -117,8 +117,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) {