Matthew Murray
07/26/2022, 7:45 PMrnett
07/26/2022, 8:17 PM===
would be comparing the two Kotlin boxes by reference, and they wouldn't be equalMatthew Murray
07/26/2022, 8:18 PMLandry Norris
07/27/2022, 6:04 PMMatthew Murray
07/28/2022, 9:05 AMfun compare(item : Any, withItem : Any) : Boolean {
return item === withItem
}
Matthew Murray
07/28/2022, 9:07 AMBOOL equality = [[Utils shared] compareItem:view withItem:view];
And it will return false - where view
is a UIViewLandry Norris
07/28/2022, 1:35 PMMatthew Murray
07/28/2022, 7:25 PMLandry Norris
07/28/2022, 7:26 PMMatthew Murray
07/28/2022, 7:27 PMLandry Norris
07/28/2022, 7:28 PM