---
title: "init(type:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstouch/touchtypemask/init(type:)"
---

# init(type:)

Creates a new touch type mask from the touch type.

## Declaration

```swift
init(type: NSTouch.TouchType)
```

## See Also

### Creating a Touch Type Mask

- [init(rawValue:)](appkit/nstouch/touchtypemask/init(rawvalue:).md)
