Skip to content

Commit 8f3f34d

Browse files
committed
[trello.com/c/ONt29HWW] Save the index of the current selected crypto in a carousel when switching between secrets and regular.
1 parent e03d451 commit 8f3f34d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Adamant/Modules/Account/AccountViewController/AccountViewController.swift

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ final class AccountViewController: FormViewController {
184184
guard let self = self else { return }
185185
self.setupWalletsVC()
186186
self.pagingViewController.reloadData()
187+
if let pagingItemIndex = currentSelectedWallet?.identifier {
188+
self.pagingViewController.select(index: pagingItemIndex, animated: false)
189+
}
187190
guard index >= 0 else { return }
188191
self.accountHeaderView.setWalletIcon(index == 0 ? .regular : .secret, badgeCount: index)
189192
}

0 commit comments

Comments
 (0)