From 1f337613beb8c1b616193ac27b40dbf9a13cc74e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 26 Jan 2023 22:29:23 -0500 Subject: [PATCH] Add animation when compose toolbar buttons (dis)appear --- Tusker/Screens/Compose/ComposeToolbar.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Compose/ComposeToolbar.swift b/Tusker/Screens/Compose/ComposeToolbar.swift index 646c12d3..f3b7ba8f 100644 --- a/Tusker/Screens/Compose/ComposeToolbar.swift +++ b/Tusker/Screens/Compose/ComposeToolbar.swift @@ -54,6 +54,7 @@ struct ComposeToolbar: View { .font(.system(size: imageSize)) .padding(5) .hoverEffect() + .transition(.opacity.animation(.linear(duration: 0.2))) } if let currentInput = uiState.currentInput, @@ -74,6 +75,7 @@ struct ComposeToolbar: View { .accessibilityLabel(format.accessibilityLabel) .padding(5) .hoverEffect() + .transition(.opacity.animation(.linear(duration: 0.2))) } }