Add animation when compose toolbar buttons (dis)appear
This commit is contained in:
parent
3f4a62f5f9
commit
1f337613be
|
@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue