274 Followers
27 Following
50 Posts
uikit at . the tab bar guy, amongst other things. professional nap enthusiast.
Websitehttps://andyliang.me/
@kaiengelhardt There’s no API to control the width for the sidebar. That being said, with iPadOS 26, it can now be resized by users within the system-defined range.
@stroughtonsmith Good news, future beta is no longer 'future'. This bug should be resolved in beta 5, which was released a couple of minutes ago.
@stroughtonsmith This is a known issue and should be resolved in a future beta. Like iPadOS 18, the tab bar will push the navigation bar down.
@b3ll Tab bar looks great. No notes.

@nicoreese Yep! This is what managingNavigationController and the associated delegate API was designed to do.

What you can do is when you're not in compact (i.e. sidebar is available), return [] to displayedViewControllers for the Library tab, and return proposedViewControllers in compact. I'd also suggest marking the Library tab as 'sidebarOnly' for its placement. That should get you the behavior you're looking for.

@Joekw @stroughtonsmith Magic is the goal! We wanted to build an easier way to build tab-based apps that adapt well across various platforms and scene sizes.

With managingNavigationController, it removes a lot of the custom hierarchy management for adaptivity from apps so you can focus on building everything else in your app. 🙂

@stroughtonsmith @Joekw This one is interesting, because I can understand why you’d want to show Settings on Phone vs not on Pad. Instead of adding/removing, you can use isHidden so that it’s always in the model but just hidden when you want it hidden.

@Joekw @stroughtonsmith I guess the question is if the group hierarchically fits with another root tab (I’d assume it does because how will users access that content in compact).

If so, you could structure it as:

TabGroup (appearance=inline)
- Root Tab
- Section (appearance=rootSection)

Structuring them relatively to the parent will also help take care of adapting between compact and regular.

Beyond that though, can you file a feedback for the issue you see?

@stroughtonsmith @Joekw The API and feature is designed such that the Sidebar is the “everything” destination and the iPad tab bar shows the important + user favourite destinations (thru user customization).

The intent is that you should have a single model across your app, and thru properties on the tab models, we’ll display the same model differently between your phone and pad UI. I can give recommendations if you have an example hierarchy.

@BenRiceM @Joekw @stroughtonsmith A lot of these APIs are just a year old and we’re definitely still evolving and improving them. If there’s anything that you believe is important that isn’t yet possible, file an ER through Feedback Assistant and let me know! We want to make the best experience possible here, and have spent a lot of time making this better.