Leave a rating/review
Notes: 22. Configuring the Data
Update regarding Hashable & Equatable
Per Apple's documentation for hash(into:), when implementing Hashable with your own hash(into:) and == methods, they should use the same properties.
For example, the Section hash(into:) method uses the identifier property:
func hash(into hasher: inout Hasher) {
hasher.combine(identifier)
}
Its implementation of == should also use identifier
static func ==(lhs: Section, rhs: Section) -> Bool {
return lhs.identifier == rhs.identifier
}
The == implementations have been corrected in the materials for this course as of September, 2020
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.