AlignmentRectInsetsImageModifier

public struct AlignmentRectInsetsImageModifier: ImageModifier

Modifier for setting the alignmentRectInsets property of images. Only UI-based images are supported; if a non-UI image is passed in, the modifier will do nothing.

  • The alignment insets to apply to the image

    Declaration

    Swift

    public let alignmentInsets: UIEdgeInsets
  • Initialize a AlignmentRectInsetsImageModifier

    Declaration

    Swift

    public init(alignmentInsets: UIEdgeInsets)
  • Modify an input Image.

    Note

    See documentation of ImageModifier protocol for more.

    Declaration

    Swift

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

    Parameters

    image

    Image which will be modified by self

    Return Value

    The modified image.