Leave a rating/review
There is a bug that can be triggered when the triggerUpdates
method is called and there are no tutorials in the queue. To handle this scenario, add an if condition to the top of the method to ensure there are items in the current snapshot.
@IBAction func triggerUpdates() {
if !dataSource.snapshot().itemIdentifiers.isEmpty {
(existing method code goes here)
}
}
Update Note: This course was originally recorded in November, 2019 using Xcode 11 & iOS 13. The course has been reviewed, and all materials updated to Xcode 12 & iOS 14 as of September, 2020