From 06183f564980bbfdd9fa337a700b3ad3c757f23e Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Tue, 7 Feb 2023 16:52:09 -0500 Subject: [PATCH] Refactor: remove unnecessary Published property --- .../Scene/ComposeContent/Poll/PollAddOptionRow.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/Poll/PollAddOptionRow.swift b/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/Poll/PollAddOptionRow.swift index 5a8ae58d1..c22b22432 100644 --- a/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/Poll/PollAddOptionRow.swift +++ b/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/Poll/PollAddOptionRow.swift @@ -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