---
title: NSTouch.TouchType
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nstouch/touchtype
---

# NSTouch.TouchType

A bit mask identifying a direct or indirect touch type.

## Declaration

```swift
enum TouchType
```

## Topics

### Touch Types

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

### Initializers

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

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting the Touch Type

- [type](appkit/nstouch/type.md)
- [NSTouch.TouchTypeMask](appkit/nstouch/touchtypemask.md)
