border doesn't work with swift 3
aboelbisher opened this issue · comments
Hi.
am trying to border a view (using swift 3 and Xcode 9.1) , but it keeps giving me this error :
error: error: use of undeclared identifier 'CGFloat'
error: error: use of undeclared identifier 'CGColorRef'
error: expected ']'
to match this '['
thanks, I'll take a look
Reboot fix this issue for me.
reboot what ? my macbook ? or just the Xcode ?
rebooting didn't fix the issue
and importing gave me an error :
error: :3:2: error: expected an attribute name
@import UIKit
and also #import UIKit gave the error :
error: error: use of undeclared identifier 'CGFloat'
error: error: use of undeclared identifier 'CGColorRef'
error: expected ']'
to match this '['
after calling "border self.view"