Skip to content

Commit

Permalink
Merge branch 'limit-the-name-of-a-custom-list-to-30-characters-ios-621'
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Apr 16, 2024
2 parents 6fdc653 + 25ea585 commit 0e716a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 0e716a9

Please sign in to comment.