SwiftUIMaterialTabs icon indicating copy to clipboard operation
SwiftUIMaterialTabs copied to clipboard

Scrolling support above content?

Open J6ey opened this issue 3 months ago • 2 comments

Hi, this is more of a question. I notice that scrolling doesn't register beyond the MaterialTabsScroll, like in the headerTabBar or headerTitle area. Is it possible to register or connect the scrolling there too?

J6ey avatar Oct 09 '25 16:10 J6ey

I don't think that is possible in SwiftUI, but I'd love to be proven wrong. In UIKit, you could move the scroll view's swipe gesture recognizer to a parent view to accomplish this, but I'm not aware of any similar capability in SwiftUI.

wtmoose avatar Oct 09 '25 16:10 wtmoose

Got it thanks for the prompt response! I asked because a large part of my screen is taken up in the headerTitle, and the only part I need it to be sticky is the headerTabBar, while the content contains scrollable tabs. I thought it was only nature scrolling would work in the top area too given this is a common pattern. Maybe I'm using this incorrectly on my end.

J6ey avatar Oct 09 '25 17:10 J6ey