SwiftKickMobile / SwiftUIMaterialTabs

Material 3-style tabs and Sticky Headers rolled into one SwiftUI library
MIT License
61 stars 9 forks source link

Scroll position of other tabs follows current tab until switched to #9

Open Rod-Tav opened 4 months ago

Rod-Tav commented 4 months ago

https://github.com/user-attachments/assets/f496722b-3e46-4a6d-bb40-21de7b018490

wtmoose commented 4 months ago

Thanks for bringing this up. I can’t believe we never noticed. It’s hard to see unless you swipe slowly.

I’ve got another ticket to fix iOS 18 #8. If that ticket results in a significant rewrite of the scroll logic, I will likely focus on making it work properly in iOS 18 and leave iOS 17 as is. We’ll see.

wtmoose commented 2 months ago

There is a fix for this on branch work/scrollPosition if you'd like to check. The fix only works on iOS 18 because it relies on the new ScrollPosition type. I'm still testing, but will release as soon as testing is done.

https://github.com/user-attachments/assets/61e2d16e-7674-4b63-b24a-4f6e2bf1b01a