Change to always call super

This commit is contained in:
Maurice Parker 2021-10-21 09:34:33 -05:00
parent a990888be7
commit 99d24e1623
1 changed files with 1 additions and 1 deletions

View File

@ -87,9 +87,9 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
}
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
if traitCollection.preferredContentSizeCategory != previousTraitCollection?.preferredContentSizeCategory {
IconImageCache.shared.emptyCache()
super.traitCollectionDidChange(previousTraitCollection)
reloadAllVisibleCells()
}
}