reorder in pack list

This commit is contained in:
Nihaal Sharma committed 2026-08-27 23:12:55 +05:30
1 parent 5a723075b3
commit 6505f45074
2 files changed
+7 -1

No files matched your search

@@ -69,4 +69,10 @@ extension EmojiHoarder {
}
saveEmojiPacks()
}
func moveEmojiPack(from: IndexPath, to: IndexPath) {
let removed = emojiPacks.remove(at: from.row)
emojiPacks.insert(removed, at: to.row)
saveEmojiPacks()
}
}
@@ -220,7 +220,7 @@ class EmojiPackListView: UITableViewController {
}
override func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) {
print(tableView, sourceIndexPath, destinationIndexPath)
self.emojiHoarder.moveEmojiPack(from: sourceIndexPath, to: destinationIndexPath)
}
override func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.