---
title: username
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstextcontenttype/username
---

# username

A property that defines the content in a text input area as an account or login name.

## Declaration

```swift
static let username: NSTextContentType
```

## See Also

### Managing accounts

- [password](appkit/nstextcontenttype/password.md)
- [newPassword](appkit/nstextcontenttype/newpassword.md)
