TouchInspector is a lightweight package that helps you visualize and debug touches on iOS and iPadOS.
Showing touches is super useful when recording and sharing demos from a device or Simulator.
TouchInspector can optionally also show hit-testing information (i.e. which view a touch is hitting). This is great when trying to identify the type of some view, or debug where a touch is actually going.
Installation
Add TouchInspector to your app’s Package.swift file, or selecting File -> Add Packages in Xcode:

TouchInspector
TouchInspector is a lightweight package that helps you visualize and debug touches on iOS and iPadOS.
Showing touches is super useful when recording and sharing demos from a device or Simulator.
TouchInspector can optionally also show hit-testing information (i.e. which view a touch is hitting). This is great when trying to identify the type of some view, or debug where a touch is actually going.
Installation
Add TouchInspector to your app’s
Package.swift
file, or selectingFile -> Add Packages
in Xcode:Usage
You’ll need to change the type of your application/scene’s
window
toTouchInspectorWindow
, which you can do conditionally when developing:Touch and hit-testing visualization is enabled by default when creating a
TouchInspectorWindow
. You can change that with the following properties: