By βI heard people mention,β I assume that you mean a discussion of this issue . It was suggested that you actually draw the content in your CALayer so that it has a transparent border with one pixel outside the main content using code
CGContextSetAllowsAntialiasing(theContext, true); CGContextSetShouldAntialias(theContext, true);
in your quartz drawing for this layer.
CALayer also has the edgeAntialiasingMask property, but I do not see any effect when using the code, for example:
layer.edgeAntialiasingMask = kCALayerLeftEdge | kCALayerRightEdge | kCALayerBottomEdge | kCALayerTopEdge;
when smoothing the edges of the transformed layer. See also this question for a discussion of this issue, as well as how they solved their problem using the transparent borders of one pixel around their images.
Brad Larson Apr 23 2018-10-23T00: 00Z
source share