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: