Skip to content

Commit e8b8fbd

Browse files
committed
Add animation to toggle
1 parent 9402028 commit e8b8fbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ extension PromptToCodePanel {
3838
var body: some View {
3939
HStack {
4040
Button(action: {
41-
store.send(.selectionRangeToggleTapped)
41+
withAnimation(.linear(duration: 0.1)) {
42+
store.send(.selectionRangeToggleTapped)
43+
}
4244
}) {
4345
WithViewStore(
4446
store,

0 commit comments

Comments
 (0)