---
title: "init(rawValue:)"
framework: pdfkit
role: symbol
role_heading: Initializer
path: "pdfkit/pdfannotationhighlightingmode/init(rawvalue:)"
---

# init(rawValue:)

Creates a highlight mode using the specified raw string value.

## Declaration

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

## Parameters

- `rawValue`: The raw string value for the highlight mode.
