Skip to content

UIColorBreakForOutOfRangeColorComponents #74

@mredig

Description

@mredig

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions