I’m making a “marching ants” selection frame with Core Animation Layers like in this post: MARCHING ANTS WITH CORE ANIMATION.
But the only thing I don’t like is the width of line in CAShapeLayer. I need the width to be exactly 1px, but because of antialiasing the line width is about 2 pixels and a little transparent.
Is there any way to turn off antialiasing?
Based on the docs, it looks like you’re stuck with antialising: