Fix Leaks
This commit is contained in:
@@ -29,11 +29,11 @@ class TabBarViewController: UIViewController, TabBarViewDataSource, TabBarViewDe
|
||||
tabBarView.delegate = self
|
||||
tabBarView.reloadTabs()
|
||||
|
||||
tabObserver = tabController.$tabs.sink(receiveValue: { [tabBarView] (newTabs: [Tab]) in
|
||||
tabObserver = tabController.$tabs.sink(receiveValue: { [unowned self] (newTabs: [Tab]) in
|
||||
DispatchQueue.main.async { tabBarView.reloadTabs() }
|
||||
})
|
||||
|
||||
activeTabIndexObserver = tabController.$activeTabIndex.sink(receiveValue: { [tabBarView] (activeIndex: Int) in
|
||||
activeTabIndexObserver = tabController.$activeTabIndex.sink(receiveValue: { [unowned self] (activeIndex: Int) in
|
||||
tabBarView.activateTab(atIndex: activeIndex)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user