Kingfisher Documentation

Structure Border

public struct Border  

Initializers

init(color:​line​Width:​radius:​rounding​Corners:​)

public init(
        color: KFCrossPlatformColor = .black,
        lineWidth: CGFloat = 4,
        radius: Radius = .point(0),
        roundingCorners: RectCorner = .all
    )  

Properties

color

public var color: KFCrossPlatformColor

line​Width

public var lineWidth: CGFloat

radius

public var radius: Radius

The radius will be applied in processing. Specify a certain point value with .point, or a fraction of the target image with .widthFraction. or .heightFraction. For example, given a square image with width and height equals, .widthFraction(0.5) means use half of the length of size and makes the final image a round one.

rounding​Corners

public var roundingCorners: RectCorner

The target corners which will be applied rounding.