---
title: NSTouch.TouchTypeMask
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nstouch/touchtypemask
---

# NSTouch.TouchTypeMask

A bit mask identifying a direct or indirect touch type.

## Declaration

```swift
struct TouchTypeMask
```

## Topics

### Creating a Touch Type Mask

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

### Masking the Touch Types

- [direct](appkit/nstouch/touchtypemask/direct.md)
- [indirect](appkit/nstouch/touchtypemask/indirect.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Getting the Touch Type

- [type](appkit/nstouch/type.md)
- [NSTouch.TouchType](appkit/nstouch/touchtype.md)
