Skip to content

Commit a4f0809

Browse files
committed
Add topic poll animations
1 parent a674971 commit a4f0809

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Modules/Sources/TopicFeature/Views/PollView.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ struct PollView: View {
8686
HStack {
8787
Button {
8888
if showVoteResultsButtonTapped {
89-
showVoteResultsButtonTapped = false
89+
withAnimation {
90+
showVoteResultsButtonTapped = false
91+
}
9092
} else {
9193
isSending = true
9294
onVoteButtonTapped(selections)
@@ -105,7 +107,9 @@ struct PollView: View {
105107

106108
if !showVoteResultsButtonTapped {
107109
Button {
108-
showVoteResultsButtonTapped = true
110+
withAnimation {
111+
showVoteResultsButtonTapped = true
112+
}
109113
} label: {
110114
Text("Show results", bundle: .module)
111115
.padding(.horizontal, 18)

0 commit comments

Comments
 (0)