Poll options can be multiline during creation (#2274)

This commit is contained in:
Mauro
2023-12-20 14:22:57 +01:00
committed by GitHub
parent 756b96f7ff
commit e8da21e340
4 changed files with 8 additions and 8 deletions
@@ -94,6 +94,8 @@ struct PollFormScreen: View {
.accessibilityIdentifier(A11yIdentifiers.pollFormScreen.addOption) .accessibilityIdentifier(A11yIdentifiers.pollFormScreen.addOption)
} }
} }
// Disables animations when the text view resizes for multiline
.animation(.noAnimation, value: UUID())
} }
private var showResultsSection: some View { private var showResultsSection: some View {
@@ -166,13 +168,10 @@ private struct PollFormOptionRow: View {
.accessibilityLabel(L10n.actionRemove) .accessibilityLabel(L10n.actionRemove)
} }
TextField(text: $text) { TextField(text: $text, axis: .vertical) {
Text(placeholder) Text(placeholder)
.compoundTextFieldPlaceholder() .compoundTextFieldPlaceholder()
} }
.introspect(.textField, on: .supportedVersions) { textField in
textField.clearButtonMode = .whileEditing
}
.tint(.compound.iconAccentTertiary) .tint(.compound.iconAccentTertiary)
.alignmentGuide(.listRowSeparatorLeading) { _ in 0 } .alignmentGuide(.listRowSeparatorLeading) { _ in 0 }
} }
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:b4be2cd725b1827517224eeee1def3f15c4a51b931bc38119faebc953a8ca5ab oid sha256:f22c1b227cb4545c3d8609cf08adeca1680733a5ce65f53ff6d8f20f30d3886a
size 128139 size 128184
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:e18f6203bb7bf2df1ac5910f1caa05161fe6866ae6183ca3cfb27e6efe507305 oid sha256:fcfca7febd7b0e6d7b66695b2149049eefbaf9a8d47f3a3f56c48c0e4b837695
size 126330 size 128716
+1
View File
@@ -0,0 +1 @@
Options in poll form creation can be multiline.