This commit is contained in:
2025-11-13 19:20:57 +08:00
parent 50163d02a7
commit ae79d1b1ba
17 changed files with 846 additions and 4 deletions

View File

@@ -226,6 +226,7 @@ static const CGFloat JXheightForHeaderInSection = 50;
// alpha=0() alpha=1
BOOL shouldWhite = (thresholdDistance > 0.0 && scrollView.contentOffset.y >= (thresholdDistance - 0.5));
self.naviBGView.alpha = shouldWhite ? 1.0 : 0.0;
self.userHeaderView.alpha = shouldWhite ? 0 : 1.0;
//
if (shouldWhite != self.categoryIsWhite) {
@@ -234,6 +235,7 @@ static const CGFloat JXheightForHeaderInSection = 50;
self.categoryView.backgroundColor = bg;
// collectionView
self.categoryView.collectionView.backgroundColor = bg;
self.naviBGView.backgroundColor = bg;
}
}