Hold onto selected tab index in the view model.
This commit is contained in:
parent
fd4c634c74
commit
f4cb350a95
@ -30,6 +30,7 @@ import VDS
|
||||
if let delegate {
|
||||
onTabDidSelect = { [weak self] index in
|
||||
guard let self else { return }
|
||||
viewModel.selectedIndex = index
|
||||
delegate.didSelectItem(.init(row: index, section: 0), tabs: self)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user