Reputation: 5414
Why can't i use UIColor in Swift 2.0?
Makes no sense.
Upvotes: 15
Views: 8643
Reputation: 777
You have to import UIKit to use UIColor.
UIKit
UIColor
Upvotes: 8
Reputation: 71854
Just add import UIKit at the top and it will work fine.
import UIKit
Upvotes: 60