Skip to content
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

Type 'CAShapeLayerFillRule' (aka 'NSString') has no member 'evenOdd' #116

Open
mvn-anhnguyen-h-hn opened this issue Nov 28, 2018 · 4 comments

Comments

@mvn-anhnguyen-h-hn
Copy link

mvn-anhnguyen-h-hn commented Nov 28, 2018

I'm getting this compiler error with 1.2.1 on the line:
fillLayer.fillRule = CAShapeLayerFillRule.evenOdd
Relate to issue: #115

I've restarted xcode and my mac, but this issue cannot resolve. When I comment out that line, It's working well.

@augustocadini
Copy link

augustocadini commented Nov 28, 2018

This problems is happens to me too.

screen shot 2018-11-28 at 14 29 59

@mvn-anhnguyen-h-hn
Copy link
Author

@augustocadini Have you resolved this issue?

@augustocadini
Copy link

I did commented this line and works fine.

@sunilsharma08
Copy link

This error is due to Swift version. For Swift 4 you have to use kCAFillRuleEvenOdd as fillLayer.fillRule = kCAFillRuleEvenOdd and for swift 4.2 fillLayer.fillRule = CAShapeLayerFillRule.evenOdd

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