UICollectionViewDiffableDataSource: Request for number of items in section 0 when there are only 0 sections in the collection view
问题 I am trying to make a timeline where each section is a day and each day has many items (records). Here is my section (day) class: class YearMonthDay: Comparable, Hashable { let year: Int let month: Int let day: Int init(year: Int, month: Int, day: Int) { self.year = year self.month = month self.day = day } init(date: Date) { let comps = Calendar.current.dateComponents([.year, .month, .day], from: date) self.year = comps.year! self.month = comps.month! self.day = comps.day! } func hash(into