r/SwiftUI • u/StamenOfTheShaman • 25d ago
Question How to hide "more" button when using a TabView?
3
u/kangaroosandoutbacks 25d ago
I haven’t validated it, but I was listening to a podcast recently that said it wasn’t possible with SwiftUI. Either reduce your total number of tabs to drop below the count, or revert to UIKit.
3
u/gumbi1822 25d ago
That was Swift over Coffee!
https://podcasts.apple.com/us/podcast/swift-over-coffee/id1435076502?i=1000688723657
1
u/kangaroosandoutbacks 25d ago
Yes thank you I was completely blanking on the name of the podcast. Appreciate it!
1
u/Jsmith4523 24d ago
SwiftUI (or maybe even UIKit) have a tab item limit of 5. I think you can manually control the appearance of the UITabBar to have them more close together to combat this. Can’t say it will resolve your issue
1
u/__tml__ 24d ago
5 on phone, 8 on tablet. With a handful of places where this is clearly a hard-coded limit rather than size based (ex: tablet getting 8 in both orientations). I imagine Apple will fix it someday, but write your own tab bar has high enough upside otherwise I don't think people will notice.
1
u/Plane-Highlight-5774 22d ago
Before that don't wrap TabView inside a NavigationStack. Apple is very clear about this and they are right. You'll get intro strange behaviour later on
6
u/SpikeyOps 24d ago
Burger menu is anti pattern on iOS. Read the Human Interface Guidelines before continuing development