---
title: contentType
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextcontent/contenttype
---

# contentType

The semantic meaning for a text input area.

## Declaration

```swift
var contentType: NSTextContentType? { get set }
```

## Discussion

Discussion Use this property to give the system information about the expected semantic meaning for the content that people enter. For example, you might specify emailAddress for a text field that people fill in to receive an email confirmation. For possible values you can use, see NSTextContentType; by default, the value of this property is nil.

## See Also

### Specifying content type

- [NSTextContentType](appkit/nstextcontenttype.md)
