While translating code
$0.backgroundColor = .redColor()
Into Swift 3 I\'m receiving this error:
/Users//Documents/proje
In Swift 3 .redColor() is changed to just .red.
.redColor()
.red
$0.backgroundColor = .red
For more detail about this read Apple Documentation on UIColor under Symbols section check Type Properties.
UIColor
Symbols
Type Properties