While translating code
$0.backgroundColor = .redColor()
Into Swift 3 I'm receiving this error:
/Users//Documents/projects//MyCell.swift:52:35: Contextual member 'redColor' has no associated value
How can I translate this code manually?
While translating code
$0.backgroundColor = .redColor()
Into Swift 3 I'm receiving this error:
/Users//Documents/projects//MyCell.swift:52:35: Contextual member 'redColor' has no associated value
How can I translate this code manually?
In Swift 3
.redColor()
is changed to just.red
.For more detail about this read Apple Documentation on
UIColor
underSymbols
section checkType Properties
.