fix top bar

This commit is contained in:
cheykrym 2025-10-07 04:12:21 +03:00
parent e51a4ed6b2
commit 24b718d515

View File

@ -132,15 +132,13 @@ private extension TopBarView {
private var revealableSearchBar: some View { private var revealableSearchBar: some View {
let progress = normalizedRevealProgress let progress = normalizedRevealProgress
return VStack(spacing: 0) { return VStack(spacing: 0) {
Spacer(minLength: 0)
searchBar searchBar
.padding(.horizontal) .padding(.horizontal)
.padding(.bottom, 8) .padding(.bottom, 8)
.opacity(progress)
} }
.frame(height: searchBarRevealHeight) .frame(height: searchBarRevealHeight * progress, alignment: .top)
.clipped() .clipped()
.scaleEffect(y: max(progress, 0.0001), anchor: .top)
.opacity(progress)
.allowsHitTesting(progress > 0.9) .allowsHitTesting(progress > 0.9)
.accessibilityHidden(progress < 0.9) .accessibilityHidden(progress < 0.9)
} }