Refix Introspect

This commit is contained in:
Thomas Ricouard 2024-06-12 20:51:08 +02:00
parent ab99ef9a0a
commit 551697eb2c
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ struct AppView: View {
.tag(tab) .tag(tab)
} }
} }
.introspect(.tabView, on: .iOS(.v18)) { (tabview: UITabBarController) in .introspect(.tabView, on: .iOS(.v17, .v18)) { (tabview: UITabBarController) in
tabview.tabBar.isHidden = horizontalSizeClass == .regular tabview.tabBar.isHidden = horizontalSizeClass == .regular
tabview.customizableViewControllers = [] tabview.customizableViewControllers = []
tabview.moreNavigationController.isNavigationBarHidden = true tabview.moreNavigationController.isNavigationBarHidden = true

View file

@ -68,7 +68,7 @@ public struct TimelineView: View {
.scrollContentBackground(.hidden) .scrollContentBackground(.hidden)
.background(theme.primaryBackgroundColor) .background(theme.primaryBackgroundColor)
#endif #endif
.introspect(.list, on: .iOS(.v18)) { (collectionView: UICollectionView) in .introspect(.list, on: .iOS(.v17, .v18)) { (collectionView: UICollectionView) in
DispatchQueue.main.async { DispatchQueue.main.async {
self.collectionView = collectionView self.collectionView = collectionView
} }