Simple sin wave CGPath.
When added to layer flickering with black color, video:
https://gfycat.com/PaleIllAustraliansilkyterrier
Photo(it appears like this for milliseconds):
shapeLayer.lineWidth = 1
shapeLayer.fillColor = UIColor.clear.cgColor
shapeLayer.strokeColor = UIColor.white.cgColor
I remember that experienced something like this couple of years ago and make some workaround, but now I can't find exact project.
I'm already checked that width of view can be divided by length of wave, but no luck.
Some community thoughts? Have you ever experienced this?