Radius

public enum Radius

Represents a radius specified in a RoundCornerImageProcessor.

  • 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.

    Declaration

    Swift

    case widthFraction(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.

    Declaration

    Swift

    case heightFraction(CGFloat)
  • Use a fixed point value as the round corner radius.

    Declaration

    Swift

    case point(CGFloat)