Add animation when compose toolbar buttons (dis)appear

This commit is contained in:
Shadowfacts 2023-01-26 22:29:23 -05:00
parent 3f4a62f5f9
commit 1f337613be
1 changed files with 2 additions and 0 deletions

View File

@ -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)))
}
}