Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove equality check when setting rippleColor to prevent crashes ste…
…mming from CIColor (#9237) Comparing a non-`UICIColor` (e.g., a `UIExtendedSRGBColorSpace` UIColor) with a `UICIColor` crashes with the message: > error: -[MDCActionSheetTableCellTest testSetRippleColor] : failed: caught "NSInvalidArgumentException", "-[UICIColor colorSpaceName]: unrecognized selector sent to instance 0x7ff1c02595b0" Because of this, and the fact that this check is likely an unnecessary optimization (and because `isEqual:` does not return YES for UIColors from different color spaces, even if they have the same RGBA values), this PR removes the equality check. Fixes #9236
- Loading branch information