Kingfisher Documentation

Enumeration Round​Corner​Image​Processor.​Radius

public enum Radius  

Represents a radius specified in a RoundCornerImageProcessor.

Member Of

RoundCornerImageProcessor

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.

Enumeration Cases

width​Fraction

case widthFraction(CGFloat) 

The radius should be calculated as a fraction of the image width. Typically the associated value should be between 0 and 0.5, where 0 represents no radius and 0.5 represents using half of the image width.

height​Fraction

case heightFraction(CGFloat) 

The radius should be calculated as a fraction of the image height. Typically the associated value should be between 0 and 0.5, where 0 represents no radius and 0.5 represents using half of the image height.

point

case point(CGFloat) 

Use a fixed point value as the round corner radius.