I\'m checking my existing app to work correctly with the new introduced dark mode feature of ios 13.
Everything seems to work fine, only the cell background in one of m
Cell
will detect, layer
will not! You must manually update all layer
adaptations in the cell
for example.
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
removeAndReaddGradientIfNeeded()
}
}
More description here