r/iosdev • • Oct 08 '26

Help How to make extra long toolbars

Post image

not sure if you guys can see with just image, but the scroll content is able to show underneath the section with the segmented pickers, and this section’s background blends totally smoothly with the toolbar.
from my own attempts, I am not able to make a extra long toolbar, and if i added a row just underneath the toolbar, the effect of scrolling the content under the row does not produce the effect..
I'm just wondering how Apple made this. did they just built the toolbar custom without even using swiftui toolbar?
yes i am aware this is an older version of iOS, but I still want to know. thank you.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/Horror_Still_3305 Oct 08 '26

Thank you so much! Can I ask which wwdc they talked about this feature? I tried looking around but didn’t have any luck.

2

u/Ordinary-Stuff9826 Oct 08 '26

dont think theres a session just for this tbh. safeAreaInset came in ios 15 so the wwdc21 whats new in swiftui talk touches it a bit. apple docs for it are easier than the videos imo. app store is prob uikit anyway but this gets u the same look in swiftui

1

u/Horror_Still_3305 Oct 09 '26

Is there a resource discussing the toolbar background ? I find it’s dumb how if you have the safe area inset or any kind of element below it, the background of those will extend to the top edge of the screen, yet if the scrollview scrolls to the toolbar the toolbar background just “appears”, covering the existing background— its even worse cuz the toolbar background is there by default even when you didn’t set it in code. It seems more like a bug; what I’d like to see if the toolbar bg doesnt appear if theres already a background by default.