I'm building an iOS app using Swift. And recently, Xcode has been going crazy. My code highlighting keeps turning on and off (from colored variables to white on black ...) See print screens.
So in a couple of seconds, I go from
And then back to color. Sometime, the color doesn't come back for a couple of minutes. Any ideas how I can fix this?