Swift 2.0 use of undeclared type UIColor

Lord Vermillion picture Lord Vermillion · Sep 18, 2015 · Viewed 8.2k times · Source

Why can't i use UIColor in Swift 2.0?

Makes no sense.

enter image description here

Answer

Dharmesh Kheni picture Dharmesh Kheni · Sep 18, 2015

Just add import UIKit at the top and it will work fine.