Magnetic icon indicating copy to clipboard operation
Magnetic copied to clipboard

UIColorBreakForOutOfRangeColorComponents

Open mredig opened this issue 5 years ago • 0 comments

While using this library, I occasionally (roughly half the time I run the exact same procedure in my app) get an error in the console reading UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once. I've followed the directions by setting a breakpoint and could find nothing there and confirmed that my own code has no time where I create a UIColor with a value more than 1.0.

Additionally, I found this StackOverflow answer indicating that I'm not the only one experiencing this.

I don't think it's a big deal at all as it's not causing a crash, but I thought I'd at least raise awareness of it.

New Issue Checklist

Issue Description

I get inconsistent warnings regarding UIColorBreakForOutOfRangeColorComponents - I will run the exact same code multiple times and only have it happen sometimes.

Environment

  • iOS Version: 12.2
  • Device(s): Simulator 5s and real iPhone 6s

mredig avatar Apr 19 '19 06:04 mredig