If you use a color literal without first having imported AppKit or UIKit, the diagnostic is poor. Instead, recommend importing one of those two modules as appropriate.