CardArt

public struct CardArt : Sendable

CardArt provides the card information used by the MPA for display.

  • Fetches list of supported ArtType of the card.

    Declaration

    Swift

    public var availableArtTypes: [CardArt.ArtType] { get }
  • bitmap(forArtType:) Asynchronous

    Fetches the bitmap of the card corresponding to the card art type.

    Throws:

    Declaration

    Swift

    public func bitmap(forArtType artType: CardArt.ArtType) async throws -> Bitmap

    Parameters

    artType

    Input data of type ArtType to get relevant card art.

    Return Value

    Bitmap for cardArt.

  • Describes the type of card art

    See more

    Declaration

    Swift

    public enum ArtType
  • CardArtSize provides the size of the card arts.

    See more

    Declaration

    Swift

    public struct Size
  • CardBitmap provides the size and bitmap resource of the card art.

    See more

    Declaration

    Swift

    public struct Bitmap
  • Undocumented

    See more

    Declaration

    Swift

    public enum Error : Swift.Error