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

# init(rawValue:)

Creates a new content type with the raw value you provide.

## Declaration

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

## Parameters

- `rawValue`: A string that represents the content type.
