<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIEvent/touches(for:)-767rm",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIEvent(im)touchesForWindow:"
  },
  "title" : "touches(for:)"
}
-->

# touches(for:)

Returns the touch objects from the event that belong to the specified window.

```
func touches(for window: UIWindow) -> Set<UITouch>?
```

## Parameters

`window`

The [`UIWindow`](/documentation/UIKit/UIWindow) object in which the touches originally occurred.

## Return Value

A set of [`UITouch`](/documentation/UIKit/UITouch) objects representing the touches that belong to the specified window.

---

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)