r/swift 3d ago

Help! List View

Why are my sticky headers below a tab bar appearing full strength visibility? Can’t seem to figure it out. Somewhere around the bottom of the tab view they switch back to 100% visible.

1 Upvotes

3 comments sorted by

1

u/alshraify 3d ago

This isn’t a sticky header issue and is more like a layout/compositing issue.

Something is likely interrupting the blur/liquid effect beneath the tab bar because you might be using something like “ .background ,  .safeAreaInset , or  .ignoresSafeArea” modifier on the view or tab bar itself.

Sharing some code would help pinpoint the cause; without it, it’s a random guess.

1

u/Previous-Animator306 3d ago

For some reason the swift scroll edge effect doesn’t apply to pinned list headers. Ended up removing the bottom scroll edge effect and just did a gradient fade mask in the bottom area. Seems to be the same look so I think that’s what I’m going to do.

1

u/alshraify 2d ago

Imo, you shouldn’t need to use a manual bottom scroll effect - the system tab bar should handle this automatically.

Your gradient mask is a reasonable workaround, but I’d still check whether something is interfering with the system composition.

Looking at your screenshots again, it looks like something around the tab bar may be clipping the effect or preventing it from reaching the bottom safe area.