Skip to content

Made filter recreation happen in each layout pass#17

Merged
TimOliver merged 1 commit into
mainfrom
layout-fixes
Feb 13, 2026
Merged

Made filter recreation happen in each layout pass#17
TimOliver merged 1 commit into
mainfrom
layout-fixes

Conversation

@TimOliver
Copy link
Copy Markdown
Owner

I found in testing when rapidly cycling between light and dark mode that the blur effect would break.

It appears that the blur effect gets reset back to its opaque block upon trait changes. Even though I reapplied the effect in the trait collection callback, it appeared to be happening too early.

So it might have made the library slightly less performant, but I made it that the filter is always updated in each layout pass, and then set setNeedsLayout in the trait changes. I then audited all of the call sites to make sure we weren't calling layoutSubviews multiple times unnecessarily.

Seems to be working correctly now in all of my tests

@TimOliver TimOliver merged commit d7db284 into main Feb 13, 2026
@TimOliver TimOliver deleted the layout-fixes branch February 13, 2026 09:29
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.

1 participant