In the latest beta (6) of xcode 9 and iOS 11 I can no longer access UIColors from the .xcassets folder with UIColor(named: )
Application crashes with no useful output in thr debugger to suggest why
Anyone else having this issue?
Seems to work fine
Here is the color contents.json
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0.686",
"alpha" : "1.000",
"blue" : "0.670",
"green" : "1.000"
}
}
}
]
}Here is the code:
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = UIColor(named: "myGreen")
}