Color
or UIColor
has values outside 0 to 1?Suggested approach: In the old days values outside of 0 and 1 would be clamped (i.e., forced to 0 or 1) because they didn't mean anything, but wide color support means that is no longer the case – a red value beyond 1.0 is especially red, going into the Display P3 gamut.
Estimated difficulty: Advanced
See the full list of iOS interview questions
Link copied to your pasteboard.