SwiftUIMaterialTabs
SwiftUIMaterialTabs copied to clipboard
Material 3-style tabs and Sticky Headers rolled into one SwiftUI library
Steps: 1. Scroll to collapse the header 2. Scroll back up such that the scroll will end up at zero content offset and the header will be fully expanded 3....
It may be possible to adjust the safe area padding instead of the scroll position, which would significantly simplify the API. However, this requires frame-by-frame tracking of scroll view parameters....
The `PrimaryTab` takes an icon that can be a SF Symbol image, however there is no value available to trigger symbol effects in the current API. Perhaps provide another initializer...
https://github.com/user-attachments/assets/f496722b-3e46-4a6d-bb40-21de7b018490
I think this will require dipping into UIKit, unfortunately.
1. Add some toggle to trigger header height change 2. Add .animation or change the toggle value using withAnimation {} 3. Header size change animation is janky. Content (with yellow...
https://github.com/user-attachments/assets/5bcdc9b9-c95c-4c97-a96f-91dfd82d5362 Thanks for this great lib! **This only applies when switching from long content to short content**, the initial position in Tab 2 should align with the header height and...