Skip to content

border doesn't work with swift 3 #208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aboelbisher opened this issue Nov 9, 2017 · 6 comments
Closed

border doesn't work with swift 3 #208

aboelbisher opened this issue Nov 9, 2017 · 6 comments

Comments

@aboelbisher
Copy link

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 '['

@kastiglione
Copy link
Contributor

thanks, I'll take a look

@xhruso00
Copy link

Reboot fix this issue for me.

@xhruso00
Copy link

try in console
e @import AppKit or
e @import UIKit

@aboelbisher
Copy link
Author

reboot what ? my macbook ? or just the Xcode ?

@aboelbisher
Copy link
Author

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"

@kastiglione
Copy link
Contributor

This should be fixed by #232.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants