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.Compares two AssetImage
instances 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) -> Bool
Parameters
lhs
|
The left-hand side |
rhs
|
The right-hand side |
Return Value
A Boolean value indicating whether the two AssetImage
instances are equal.
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 UIImage
object. If the image should be flipped, it returns the image with a horizontally flipped orientation.
Initializes a new instance of AssetImage
with 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
name
|
The name of the image. |