mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Refactor: remove unnecessary Published property
This commit is contained in:
parent
2b2a879905
commit
06183f5649
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user