<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITouch/TouchType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITouchType"
  },
  "title" : "UITouch.TouchType"
}
-->

# UITouch.TouchType

The type of touch received.

```
enum TouchType
```

## Topics

### Touch types

[`UITouchTypeDirect`](/documentation/UIKit/UITouch/TouchType/direct)

A touch resulting from direct contact with the screen.

[`UITouchTypeIndirect`](/documentation/UIKit/UITouch/TouchType/indirect)

A touch that doesn’t result from contact with the screen.

[`UITouchTypePencil`](/documentation/UIKit/UITouch/TouchType/pencil)

A touch from Apple Pencil.

[`UITouchTypeIndirectPointer`](/documentation/UIKit/UITouch/TouchType/indirectPointer)

A touch resulting from a button-based, indirect input device that describes the input sequence from button press to button release.

### Deprecated

[`UITouchTypeStylus`](/documentation/UIKit/UITouch/TouchType/stylus)

A touch from a stylus.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)