needed to add self
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a780a27e18
commit
c6002487db
@ -172,7 +172,7 @@ open class Tabs: View {
|
||||
.publisher(for: UITapGestureRecognizer())
|
||||
.sink { [weak self] gesture in
|
||||
guard let self, let tabItem = gesture.view as? Tab else { return }
|
||||
if let selectedIndex = tabViews.firstIndex(of: tabItem) {
|
||||
if let selectedIndex = self.tabViews.firstIndex(of: tabItem) {
|
||||
self.selectedIndex = selectedIndex
|
||||
self.onTabChange?(selectedIndex)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user