AssetImage
public struct AssetImage : Equatable
Represents an image asset with a specified name.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a new instance of
AssetImagewith the specified image name.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init(name: ImageName)Parameters
nameThe name of the image.
-
Retrieves the image associated with the
AssetImage.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var image: UIImage? { get }Return Value
An optional
UIImageobject. If the image should be flipped, it returns the image with a horizontally flipped orientation. -
Compares two
AssetImageinstances for equality.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static func == (lhs: AssetImage, rhs: AssetImage) -> BoolParameters
lhsThe left-hand side
AssetImageinstance.rhsThe right-hand side
AssetImageinstance.Return Value
A Boolean value indicating whether the two
AssetImageinstances are equal.
TomTom SDK for iOS (0.66.0)
AssetImage