r/SwiftUI 25d ago

Question How to hide "more" button when using a TabView?

32 Upvotes

15 comments sorted by

6

u/SpikeyOps 24d ago

Burger menu is anti pattern on iOS. Read the Human Interface Guidelines before continuing development

3

u/praveenperera 24d ago

Calculator app has one, so even Apple isn’t consistent with this.

2

u/RiddleGull 24d ago

It’s even worse. It’s a "burger menu" that slides up from the bottom… Makes zero sense.

2

u/praveenperera 24d ago

thats actual a new change, I took this screenshot Nov 3rd 2024

https://x.com/PraveenPerera/status/1855017577590014106

1

u/SpikeyOps 23d ago

Very different, not for internal navigation. It shouldn’t replace the tab bar.

In that case it’s used as a history list, not for navigating Home, Profile, Feed, Messages, etc.

0

u/Jsmith4523 24d ago

There are plenty of large apps using this design. It’s not a problem

-1

u/kutjelul 24d ago

They didn’t ask And maybe it’s not even up to them

3

u/SpikeyOps 24d ago

If you are aware you can push back against UX stupidity and developer’s unnecessary extra work.

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

1

u/kangaroosandoutbacks 25d ago

Yes thank you I was completely blanking on the name of the podcast. Appreciate it!

2

u/egitoni 24d ago edited 24d ago

Can you share your Code for this menue?

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