---
title: "init(rawValue:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlfeaturevalue/imageoption/init(rawvalue:)"
---

# init(rawValue:)

Creates an image feature option key from a raw value string.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: A string that represents the name of the image feature option key.

## Discussion

Discussion Don’t use this initializer directly. Create an image option key with cropAndScale or cropRect instead.

## See Also

### Image option key initializers

- [init(_:)](coreml/mlfeaturevalue/imageoption/init(_:).md)
