Add pointer hover effects to compose poll buttons

This commit is contained in:
Shadowfacts 2021-06-09 19:18:54 -04:00
parent 2499d25432
commit 2a05b6d326
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ struct ComposePollView: View {
}
.accentColor(buttonForegroundColor)
.background(Circle().foregroundColor(buttonBackgroundColor))
.hoverEffect()
}
ForEach(Array(poll.options.enumerated()), id: \.element.id) { (e) in
@ -161,6 +162,7 @@ struct ComposePollOption: View {
}
.foregroundColor(poll.options.count == 1 ? .gray : .red)
.disabled(poll.options.count == 1)
.hoverEffect()
}
}