Skip to content

Fix repeated evaluation on scroll#26

Open
wtmoose wants to merge 8 commits intomainfrom
work/fix-repeated-evaluation-on-scroll
Open

Fix repeated evaluation on scroll#26
wtmoose wants to merge 8 commits intomainfrom
work/fix-repeated-evaluation-on-scroll

Conversation

@wtmoose
Copy link
Member

@wtmoose wtmoose commented Feb 12, 2026

Breaking Changes

  • Minimum deployment target raised to iOS 18. iOS 17 is no longer supported.
  • HeaderContext converted from a struct to an @Observable class to address performance issues related to SwiftData queries. The observable class shields content views from re-performing queries and re-evaluating body on every frame while scrolling. If you stored HeaderContext (or its typealiases MaterialTabsHeaderContext / StickyHeaderContext) by value, you will need to update to reference semantics.
  • How to scroll MaterialTabScroll progammatically? #19 MaterialTabsScroll joint scroll position API replaced with iOS 18 ScrollPosition. The old scrollAnchor parameter is replaced by optional scrollPosition and anchor bindings for joint scroll position manipulation between the library and client code.

Improvements

// Created by Timothy Moose on 2/11/26.
//

import SwiftUI
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just existing code extracted into a reusable view shared by MaterialTabBar and MaterialAccessoryTabBar (new)

@wtmoose wtmoose requested a review from mofeejegi February 12, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants