fix top bar
This commit is contained in:
		
							parent
							
								
									e51a4ed6b2
								
							
						
					
					
						commit
						24b718d515
					
				@ -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)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user