Creates a string from another string wrapped in a data value.
SDKs
- macOS 10.14+
- Xcode 10.0+
Framework
- Create ML
Declaration
init?(from dataValue: MLDataValue )
Discussion
Use this initializer to create a string by converting an MLData with an underlying type of String. You can confirm the data value’s underlying type by retrieving a non-nil value from string or by inspecting the type property.