corin8823 / Popover

Popover is a balloon library like Facebook app. It is written in pure swift.
MIT License
2.09k stars 326 forks source link

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

Open mvn-anhnguyen-h-hn opened 5 years ago

mvn-anhnguyen-h-hn commented 5 years ago

I'm getting this compiler error with 1.2.1 on the line: fillLayer.fillRule = CAShapeLayerFillRule.evenOdd Relate to issue: https://github.com/corin8823/Popover/issues/115

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

augustocadini commented 5 years ago

This problems is happens to me too.

screen shot 2018-11-28 at 14 29 59

mvn-anhnguyen-h-hn commented 5 years ago

@augustocadini Have you resolved this issue?

augustocadini commented 5 years ago

I did commented this line and works fine.

sunilsharma08 commented 5 years ago

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