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
AlignmentRectInsetsImageModifierDeclaration
Swift
public init(alignmentInsets: UIEdgeInsets) -
Modify an input
Image.Note
See documentation of
ImageModifierprotocol for more.Declaration
Swift
public func modify(_ image: Image) -> ImageParameters
imageImage which will be modified by
selfReturn Value
The modified image.
View on GitHub
Install in Dash
AlignmentRectInsetsImageModifier Structure Reference