Kingfisher Documentation

Enumeration Radius

public enum Radius  

Represents a radius specified in a RoundCornerImageProcessor.

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.

Methods

compute(with:​)

public func compute(with size: CGSize) -> CGFloat