Skip to content

Commit

Permalink
addressing suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabil Khalil committed Jan 14, 2025
1 parent 8ed1517 commit c18d52b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ extension TableViewCellDemoController {
cell.bottomSeparatorType = .inset
}

if let customViewSize = section.customViewSize {
cell.customViewSize = customViewSize
}

cell.customViewSize = section.customViewSize
cell.isInSelectionMode = section.allowsMultipleSelection ? isInSelectionMode : false

cell.tokenSet.replaceAllOverrides(with: overrideTokens)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class TableViewSampleData {
let hasCustomLinkHandler: Bool
let hasCustomAccessoryView: Bool
let hasCustomLeadingView: Bool
let customViewSize: MSFTableViewCellCustomViewSize
let hasHandler: Bool
let customViewSize: MSFTableViewCellCustomViewSize?

init(title: String,
items: [Item] = [],
Expand All @@ -42,8 +42,8 @@ class TableViewSampleData {
hasCustomLinkHandler: Bool = false,
hasCustomAccessoryView: Bool = false,
hasCustomLeadingView: Bool = false,
hasHandler: Bool = false,
customViewSize: MSFTableViewCellCustomViewSize? = nil) {
customViewSize: MSFTableViewCellCustomViewSize = .default,
hasHandler: Bool = false) {
self.title = title
self.items = items
self.isUnreadDotVisible = isUnreadDotVisible
Expand All @@ -59,8 +59,8 @@ class TableViewSampleData {
self.hasCustomLinkHandler = hasCustomLinkHandler
self.hasCustomAccessoryView = hasCustomAccessoryView
self.hasCustomLeadingView = hasCustomLeadingView
self.hasHandler = hasHandler
self.customViewSize = customViewSize
self.hasHandler = hasHandler
}
}

Expand Down

0 comments on commit c18d52b

Please sign in to comment.