mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-27 10:52:40 +03:00
Swipe to remove account
This commit is contained in:
parent
39c4868045
commit
8331caac58
@ -181,6 +181,16 @@ class AccountsListViewController: UIViewController {
|
||||
|
||||
extension AccountsListViewController: UITableViewDelegate {
|
||||
|
||||
func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
|
||||
if editingStyle == .delete {
|
||||
askBeforeRemoving(wallet: wallets[indexPath.row])
|
||||
}
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
tableView.deselectRow(at: indexPath, animated: true)
|
||||
showActionsForWallet(wallets[indexPath.row])
|
||||
|
Loading…
Reference in New Issue
Block a user