Post

Replies

Boosts

Views

Activity

Reply to NSDiffableDataSourceSnapshot doesn't call Hashable methods if ItemIdentifierType is class
Here's the stack overflow explaining the problem and the answer: https://stackoverflow.com/questions/67324651/why-do-diffable-datasources-treat-class-and-struct-types-differently Need to inherit from NSObject and override isEqual(_ object: Any?) -> Bool and var hash: Int
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’24