I'm noticing some weird glitches with my collection view headers on macOS Tahoe.
The sections headers are pinned to the visible region. I headers fade out when scrolling and are supposed to fade back in but sometimes they don't fade back in and the header remains but the header text doesn't come back (until I scroll again).
How can I turn off this scroll animation thingy?
Anyway so I can do the following to basically "disable it":
- Continue drawing my section header background color in -drawRect: (windowBackgroundColor works for me)
- Instead of using NSColor +headerTextColor: for the text In the header view use colors that aren't dynamic like:
+NSColor.whiteColor for the text color in a dark NSAppearance +NSColor.blackColor for the text color in a light appearance.
So either make a custom color in an Asset catalog for the above or just override -viewDidChangeEffectiveAppearance: and change the NSTextFields textColor directly based on the current appearance.
I'm just drawing over the scroll edge effect rather than disabling it. But that'll have to do.