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
RoundedCornersFilterinstance 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
ImageFilterconforming to theRoundableprotocol.Declaration
Swift
public var identifier: String
View on GitHub
RoundedCornersFilter Struct Reference