@zmous Strange, your code with only the little modification above commented the .CGColor() does not crash for me