RoundedCornersFilter
public struct RoundedCornersFilter: ImageFilter, Roundable
Rounds the corners of an image to the specified radius.
-
The radius of the filter.
Declaration
Swift
public let radius: CGFloat
-
Whether to divide the radius by the image scale.
Declaration
Swift
public let divideRadiusByImageScale: Bool
-
Initializes the
RoundedCornersFilter
instance with the given radius.Declaration
Swift
public init(radius: CGFloat, divideRadiusByImageScale: Bool = false)
-
The filter closure used to create the modified representation of the given image.
Declaration
Swift
public var filter: (Image) -> Image
-
The unique idenitifier for an
ImageFilter
conforming to theRoundable
protocol.Declaration
Swift
public var identifier: String