HKModel

@objc
public class HKModel : NSObject

HKModel object

  • ID of the model. example: production/maleAdult/flu.json

    Declaration

    Swift

    @objc
    public var modelId: String
  • model title

    Declaration

    Swift

    @objc
    public var title: String
  • model text description

    Declaration

    Swift

    @objc
    public var text: String
  • url of thumbnail image

    Declaration

    Swift

    @objc
    public var thumbnail: String
  • thumbnail image

    Declaration

    Swift

    @objc
    public var thumbnailImage: UIImage
  • initialize an HKModel

    Declaration

    Swift

    @objc
    public init(modelId: String, title: String, text: String, thumb: String = "")

    Parameters

    modelId

    the model ID, will look like “production/maleAdult/flu” or “E3W2”

    title

    the title of the model

    text

    the text description of the model

    thumb

    optionally include the name or location of the thumbnail image