mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-28 21:39:18 +01:00
Adjusted how to hide the voting screen (#1054)
Like other submission item selection screens, the voting screen can now be shown/hidden with a button toggle. Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
This commit is contained in:
parent
d82453c513
commit
f1db2f716d
@ -39,6 +39,7 @@ struct StatusEditorAccessoryView: View {
|
|||||||
Button {
|
Button {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
viewModel.showPoll.toggle()
|
viewModel.showPoll.toggle()
|
||||||
|
viewModel.resetPollDefaults()
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Image(systemName: "chart.bar")
|
Image(systemName: "chart.bar")
|
||||||
|
@ -99,7 +99,7 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var shouldDisablePollButton: Bool {
|
var shouldDisablePollButton: Bool {
|
||||||
showPoll || !selectedMedias.isEmpty
|
!selectedMedias.isEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
var shouldDisplayDismissWarning: Bool {
|
var shouldDisplayDismissWarning: Bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user