'Used UITabBarController in tvOS 15 - tabBarObservedScrollView is deprecated in tvOS 15, Alternate method setContentScrollView are not working
In my project I have used Tabbar with 6 tabs as option. Each tab has separate UIViewControllers. And each UIViewControllers has UITableview and UICollectionView accordingly.
From any of this UIViewController, When I swipe down with the cells from UITableview/UICollectionView I need to scroll the Tabbar up/down along with swipe actions. For this functionality, there is a property self.navigationController?.tabBarObservedScrollView which has to be added with tvOS 13 version check.
Now in tvOS 15, tabBarObservedScrollView is been deprecated so the tabbar scroll is not working as like previous versions. For this Apple provided an alternate property (i.e) self.navigationController?.setContentScrollView. By using this property the scroll issue is not sorted.
If this is because of view hierarchy then I have used only UIViewController in all the tabs not UITableViewController or so. In separate manner this property is handled in all the UIViewControllers individually. But no luck!!!
If anyone has come across with this kind of issue kindly let me know how to fix it. Thanks in advance :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
