Skip to content

Commit 3fd9fda

Browse files
ivanvorobeiclaude
andcommitted
Fix button cell showing black text on initial display
Set tintColor explicitly in cell provider so the text color is correct from the start, not only after tintColorDidChange. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 0db420b commit 3fd9fda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/DiffableKit/Table/DataSource/DiffableTableDataSource+CellProvider.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ extension DiffableTableDataSource {
8484
applyImageLayout(&content)
8585
let descriptor = UIFontDescriptor.preferredFontDescriptor(withTextStyle: .body)
8686
content.textProperties.font = UIFont.systemFont(ofSize: descriptor.pointSize, weight: .medium)
87+
content.textProperties.color = cell.tintColor
8788
cell.contentConfiguration = content
8889
cell.accessoryType = item.accessoryType
8990
return cell

0 commit comments

Comments
 (0)