Refactor: remove unnecessary Published property

This commit is contained in:
Jed Fox 2023-02-07 16:52:09 -05:00
parent 2b2a879905
commit 06183f5649
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 1 additions and 4 deletions

View File

@ -22,7 +22,7 @@ public struct PollAddOptionRow: View {
.padding(.trailing, 16 - 10) // 8pt for TextField leading
.font(.system(size: 17))
PollOptionTextField(
text: $viewModel.text,
text: .constant(""),
index: 999,
delegate: nil
) { textField in
@ -44,9 +44,6 @@ public struct PollAddOptionRow: View {
extension PollAddOptionRow {
public class ViewModel: ObservableObject {
// input
@Published public var text: String = ""
// output
@Published public var backgroundColor = ThemeService.shared.currentTheme.value.composePollRowBackgroundColor