<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/ModelMetadata",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents13ModelMetadataV"
  },
  "title" : "ModelMetadata"
}
-->

# ModelMetadata

User info keys that specify useful information about a model.

```
struct ModelMetadata
```

## Topics

### Creating a model

[`init(description: String, version: String, author: String, license: String, creatorDefined: [String : String])`](/documentation/CreateMLComponents/ModelMetadata/init(description:version:author:license:creatorDefined:))

Creates model metadata.

### Getting the properties

[`var author: String`](/documentation/CreateMLComponents/ModelMetadata/author)

The author of this model.

[`var creatorDefined: [String : String]`](/documentation/CreateMLComponents/ModelMetadata/creatorDefined)

Creator-defined custom metadata.

[`var description: String`](/documentation/CreateMLComponents/ModelMetadata/description)

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

[`var license: String`](/documentation/CreateMLComponents/ModelMetadata/license)

License information for the model.

[`var version: String`](/documentation/CreateMLComponents/ModelMetadata/version)

A version number encoded as a string.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)