CodableCardItem
public struct CodableCardItem : CardItemModel, Codable
A concrete type of CardItemModel
which conforms to Codable
. Used for card authoring scena
-
Identifier
Declaration
Swift
public var id: String
-
Titile
Declaration
Swift
public var title_: String
-
Subtitle
Declaration
Swift
public var subtitle_: String?
-
Detail / Cover image (read-only)
Declaration
Swift
public var detailImage_: Data? { get }
-
Detail / Cover image (writable) Note: prefer this property over
detailImage_
Declaration
Swift
public var image_: CardImage?
-
Action text to be displayed for a card
Declaration
Swift
public var actionText_: String?
-
URL to be invoked when action gets triggered
Declaration
Swift
public var actionContentURL_: URL?
-
Icon used for the marker/card
Declaration
Swift
public var icon_: String?
-
Position of the annotation anchor on the x, y and z axis
Declaration
Swift
public var position_: SIMD3<Float>?
-
Initializer
Declaration
Swift
public init(id: String, title_: String, subtitle_: String? = nil, detailImage_: Data? = nil, image: CardImage? = nil, actionText_: String? = nil, actionContentURL_: URL? = nil, icon_: String? = nil, position_: SIMD3<Float>? = nil)
Parameters
id
Card’s title
title_
Card’s title
subtitle_
Card’s subtitle
detailImage_
Card’s image (read-only) Legacy. Use
image
insteadimage
Cards’s image
actionText_
Card’s action
actionContentURL_
URL to be invoked card’s when action gets triggered
icon_
Cards’s icon
position_
Position of the marker on the x, y and z axis