One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

ModelMetadata

struct · iOS 17.0+ · SDK 27.1

struct ModelMetadata

User info keys that specify useful information about a model.

Members (11)

init · iOS 17.0+

init

TypeScript
static init(description?: string, version?: string, author?: string, license?: string, creatorDefined?: Record<string, string>): ModelMetadata
Swift declaration
init(description: String = "", version: String = "", author: String = "", license: String = "", creatorDefined: [String : String] = [:])

Creates model metadata.

get · iOS 17.0+

description

TypeScript
get description(): string
Swift declaration
var description: String

A short description of what the model does and/or its purpose.

set · iOS 17.0+

description

TypeScript
set description(value: string)
Swift declaration
var description: String

A short description of what the model does and/or its purpose.

get · iOS 17.0+

creatorDefined

TypeScript
get creatorDefined(): Record<string, string>
Swift declaration
var creatorDefined: [String : String]

Creator-defined custom metadata.

set · iOS 17.0+

creatorDefined

TypeScript
set creatorDefined(value: Record<string, string>)
Swift declaration
var creatorDefined: [String : String]

Creator-defined custom metadata.

get · iOS 17.0+

author

TypeScript
get author(): string
Swift declaration
var author: String

The author of this model.

set · iOS 17.0+

author

TypeScript
set author(value: string)
Swift declaration
var author: String

The author of this model.

get · iOS 17.0+

license

TypeScript
get license(): string
Swift declaration
var license: String

License information for the model.

set · iOS 17.0+

license

TypeScript
set license(value: string)
Swift declaration
var license: String

License information for the model.

get · iOS 17.0+

version

TypeScript
get version(): string
Swift declaration
var version: String

A version number encoded as a string.

set · iOS 17.0+

version

TypeScript
set version(value: string)
Swift declaration
var version: String

A version number encoded as a string.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →