search_top_bar #1

Merged
cheykrym merged 7 commits from search_top_bar into main 2025-10-07 04:47:37 +03:00
Showing only changes of commit 24b718d515 - Show all commits

View File

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