Skip to content

Commit

Permalink
Poll options can be multiline during creation (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 authored Dec 20, 2023
1 parent 756b96f commit e8da21e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 }
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions changelog.d/2273.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Options in poll form creation can be multiline.

0 comments on commit e8da21e

Please sign in to comment.