UIImage

extension UIImage

Helper to produce highlighted versions of some camera action button images.

  • Produces a version of the image that is subtracted from a circle with the given radius and color.

    Declaration

    Swift

    public func circleHighlightedImage(radius: CGFloat, color: UIColor = .white) -> UIImage?

    Parameters

    radius

    The radius of the circle to subtract the image from.

    color

    The color of the circle to subtract the image from.

    Return Value

    The image subtracted from the circle with the provided radius and color.