-
The image to be displayed
Declaration
Swift
public var image: UIImage?
-
The tint color.
Declaration
Swift
public var tintColor: UIColor?
-
The content mode determines the layout of the image when its size does not precisely match the size that the element is assigned.
Declaration
Swift
public var contentMode: ContentMode
-
iOS 14 added support for Image Descriptions using VoiceOver. This is not always appropriate. Set this to
true
to prevent VoiceOver from describing the displayed image.Declaration
Swift
public var blockAccessibilityDescription: Bool
-
Initializes an image element with the given
UIImage
instance.Declaration
Swift
public init( image: UIImage?, contentMode: ContentMode = .aspectFill, tintColor: UIColor? = nil, blockAccessibilityDescription: Bool = false )
-
Declaration
Swift
public var content: ElementContent { get }
-
Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?
-
The content mode determines the layout of the image when its size does not precisely match the size that the element is assigned.
See moreDeclaration
Swift
public enum ContentMode