Popover
Popover copied to clipboard
Type 'CAShapeLayerFillRule' (aka 'NSString') has no member 'evenOdd'
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.
This problems is happens to me too.
@augustocadini Have you resolved this issue?
I did commented this line and works fine.
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