Popover icon indicating copy to clipboard operation
Popover copied to clipboard

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

Open mvn-anhnguyen-h-hn opened this issue 5 years ago • 4 comments

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.

mvn-anhnguyen-h-hn avatar Nov 28 '18 04:11 mvn-anhnguyen-h-hn

This problems is happens to me too.

screen shot 2018-11-28 at 14 29 59

augustocadini avatar Nov 28 '18 16:11 augustocadini

@augustocadini Have you resolved this issue?

mvn-anhnguyen-h-hn avatar Dec 05 '18 09:12 mvn-anhnguyen-h-hn

I did commented this line and works fine.

augustocadini avatar Dec 05 '18 10:12 augustocadini

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

sunilsharma08 avatar Jan 25 '19 07:01 sunilsharma08