diff --git a/MarvelUI/Core/Home/View/HomeView.swift b/MarvelUI/Core/Home/View/HomeView.swift index 0ffb6b4..447fd01 100644 --- a/MarvelUI/Core/Home/View/HomeView.swift +++ b/MarvelUI/Core/Home/View/HomeView.swift @@ -20,7 +20,9 @@ struct HomeView: View { LocationSearchActivationView() .padding(.vertical, 72) .onTapGesture { - showLocationSearchView.toggle() + withAnimation(.spring()) { + showLocationSearchView.toggle() + } } } diff --git a/MarvelUI/Core/Home/View/MapViewActionButton.swift b/MarvelUI/Core/Home/View/MapViewActionButton.swift index d9c0f67..30cbc4c 100644 --- a/MarvelUI/Core/Home/View/MapViewActionButton.swift +++ b/MarvelUI/Core/Home/View/MapViewActionButton.swift @@ -12,9 +12,15 @@ struct MapViewActionButton: View { var body: some View { Button { - showLocationSearchView.toggle() + withAnimation(.spring()) { + showLocationSearchView.toggle() + } } label: { - Image(systemName: "line.3.horizontal") + Image( + systemName: showLocationSearchView + ? "arrow.left" + : "line.3.horizontal" + ) .font(.title2) .foregroundColor(.black) .padding()