---
title: "init(rawValue:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uipasteboard/detectionpattern/init(rawvalue:)"
---

# init(rawValue:)

Creates a detection pattern to detect different types of content on the pasteboard.

## Declaration

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

## Parameters

- `rawValue`: A string for the pattern to detect.
