mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Poll options can be multiline during creation (#2274)
This commit is contained in:
@@ -94,6 +94,8 @@ struct PollFormScreen: View {
|
||||
.accessibilityIdentifier(A11yIdentifiers.pollFormScreen.addOption)
|
||||
}
|
||||
}
|
||||
// Disables animations when the text view resizes for multiline
|
||||
.animation(.noAnimation, value: UUID())
|
||||
}
|
||||
|
||||
private var showResultsSection: some View {
|
||||
@@ -166,13 +168,10 @@ private struct PollFormOptionRow: View {
|
||||
.accessibilityLabel(L10n.actionRemove)
|
||||
}
|
||||
|
||||
TextField(text: $text) {
|
||||
TextField(text: $text, axis: .vertical) {
|
||||
Text(placeholder)
|
||||
.compoundTextFieldPlaceholder()
|
||||
}
|
||||
.introspect(.textField, on: .supportedVersions) { textField in
|
||||
textField.clearButtonMode = .whileEditing
|
||||
}
|
||||
.tint(.compound.iconAccentTertiary)
|
||||
.alignmentGuide(.listRowSeparatorLeading) { _ in 0 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user