Skip to content

Commit

Permalink
updated height method to force twoline layout for large size
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabil Khalil committed Jan 14, 2025
1 parent c18d52b commit 2a4b715
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ open class TableViewCell: UITableViewCell, TokenizedControl {
footerLeadingAccessoryView: footerLeadingAccessoryView,
footerTrailingAccessoryView: footerTrailingAccessoryView)
// Layout type should accommodate for the customViewSize, even if it is only one line.
if customViewSize == .medium && layoutType == .oneLine {
if (customViewSize == .medium || customViewSize == .large) && layoutType == .oneLine {
layoutType = .twoLines
}
let customViewSize = Self.customViewSize(from: customViewSize, layoutType: layoutType)
Expand Down

0 comments on commit 2a4b715

Please sign in to comment.