Kingfisher Documentation

Structure Alignment​Rect​Insets​Image​Modifier

public struct AlignmentRectInsetsImageModifier: ImageModifier  

Modifier for setting the alignmentRectInsets property of images.

%73 AlignmentRectInsetsImageModifier AlignmentRectInsetsImageModifier ImageModifier ImageModifier AlignmentRectInsetsImageModifier->ImageModifier

Conforms To

ImageModifier

An ImageModifier can be used to change properties on an image between cache serialization and the actual use of the image. The modify(_:) method will be called after the image retrieved from its source and before it returned to the caller. This modified image is expected to be only used for rendering purpose, any changes applied by the ImageModifier will not be serialized or cached.

Initializers

init(alignment​Insets:​)

public init(alignmentInsets: UIEdgeInsets)  

Creates an AlignmentRectInsetsImageModifier.

Properties

alignment​Insets

public let alignmentInsets: UIEdgeInsets

The alignment insets to apply to the image

Methods

modify(_:​)

public func modify(_ image: KFCrossPlatformImage) -> KFCrossPlatformImage  

Modify an input Image. See ImageModifier protocol for more.