Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the name of a custom list to 30 characters #6131

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ struct CustomListCellConfiguration {
contentConfiguration.setPlaceholder(type: .required)
contentConfiguration.textFieldProperties = .withSmartFeaturesDisabled()
contentConfiguration.inputText = subject.value.name
contentConfiguration.maxLength = 30
contentConfiguration.editingEvents.onChange = subject.bindTextAction(to: \.name)

cell.contentConfiguration = contentConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ class LocationCell: UITableViewCell {
let label = UILabel()
label.font = UIFont.systemFont(ofSize: 16)
label.textColor = .white
label.lineBreakMode = .byWordWrapping
label.numberOfLines = 0
label.lineBreakStrategy = []
label.lineBreakMode = .byTruncatingTail
label.numberOfLines = 1
return label
}()

Expand Down
Loading