Posts

Post not yet marked as solved
26 Replies
I was getting this too (while using a Navigation controller in a Split View).While reviewing Apple's sample code for a table view using a DiffableDataSource (project: Conference, class: WiFiSettingsViewController), I noticed that the function updateUI:animated allowed a boolean to be passed, which was sent to self.dataSource.apply(currentSnapshot, animatingDifferences: animated).When updateUI:animated is initially called, animated is set to false.overridefunc viewDidLoad() { super.viewDidLoad() self.navigationItem.title = "Wi-Fi" configureTableView() configureDataSource() updateUI(animated: false) }func updateUI(animated: Bool = true) { ... self.dataSource.apply(currentSnapshot, animatingDifferences: animated) }By following this pattern in my code, the error message went away; apparently, the error was triggered during the animation process.