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 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.

  • 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.

  • 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 AssetImage instance.

    rhs

    The right-hand side AssetImage instance.

    Return Value

    A Boolean value indicating whether the two AssetImage instances are equal.