mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-27 12:59:17 +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 {
|
||||
withAnimation {
|
||||
viewModel.showPoll.toggle()
|
||||
viewModel.resetPollDefaults()
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: "chart.bar")
|
||||
|
@ -99,7 +99,7 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
|
||||
}
|
||||
|
||||
var shouldDisablePollButton: Bool {
|
||||
showPoll || !selectedMedias.isEmpty
|
||||
!selectedMedias.isEmpty
|
||||
}
|
||||
|
||||
var shouldDisplayDismissWarning: Bool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user