RoundCornerImageProcessor

public struct RoundCornerImageProcessor : ImageProcessor

Processor for making round corner images. Only CG-based images are supported in macOS, if a non-CG image passed in, the processor will do nothing.

Note

The input image will be rendered with round corner pixels removed. If the image itself does not contain alpha channel (for example, a JPEG image), the processed image will contain an alpha channel in memory in order to show correctly. However, when cached to disk, Kingfisher respects the original image format by default. That means the alpha channel will be removed for these images. When you load the processed image from cache again, you will lose transparent corner.

You could use FormatIndicatedCacheSerializer.png to force Kingfisher to serialize the image to PNG format in this case.