<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLDataValue/ValueType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML11MLDataValueO0D4TypeO"
  },
  "title" : "MLDataValue.ValueType"
}
-->

# MLDataValue.ValueType

An enumeration describing the supported underlying types that an
`MLDataValue wraps`.

```
enum ValueType
```

## Topics

### Supported values

[`case int`](/documentation/CreateML/MLDataValue/ValueType/int)

An integer type.

[`case double`](/documentation/CreateML/MLDataValue/ValueType/double)

A double type.

[`case string`](/documentation/CreateML/MLDataValue/ValueType/string)

A string type.

[`case dictionary`](/documentation/CreateML/MLDataValue/ValueType/dictionary)

A dictionary type.

[`case sequence`](/documentation/CreateML/MLDataValue/ValueType/sequence)

A sequence type.

[`case multiArray`](/documentation/CreateML/MLDataValue/ValueType/multiArray)

A multidimensional type.

[`case invalid`](/documentation/CreateML/MLDataValue/ValueType/invalid)

An invalid type.

### Describing a data value type

[`var description: String`](/documentation/CreateML/MLDataValue/ValueType/description)

A text representation of the data value type.

[`var debugDescription: String`](/documentation/CreateML/MLDataValue/ValueType/debugDescription)

A text representation of the data value type that’s suitable for output
during debugging.

### Default Implementations

[CustomDebugStringConvertible Implementations](/documentation/CreateML/MLDataValue/ValueType/CustomDebugStringConvertible-Implementations)

[CustomStringConvertible Implementations](/documentation/CreateML/MLDataValue/ValueType/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)