SkillAgentSearch skills...

VisualizeTouches

Touch Visualization in SwiftUI

Install / Use

/learn @robb/VisualizeTouches
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

visualizeTouches()

There's the kind of work that has your fingerprints all over it. However, Screen Recording only captures what happens under the glass, leaving people to guess where you put your fingers down. What if there was a better way?

https://github.com/user-attachments/assets/9a6d43aa-9bfe-4b0a-8ba6-0690c0de71aa

Using the visualizeTouches() View modifier for SwiftUI, you can visualize touches when you're recording your screen or mirroring it, e.g. via AirPlay.

This happens automatically, normal use is not affected.

List {
    Button("Hello") {}
    Button("Hello") {}
    Button("Hello") {}
}
.visualizeTouches()

Additionally, touches will be visualized in the iOS Simulator, to prevent overfitting your designs for the macOS cursor.

If you need more fine-grained control, there's an additional visualizeTouches(_:) overload that takes a Bool parameter.

See also

View on GitHub
GitHub Stars126
CategoryDevelopment
Updated11d ago
Forks5

Languages

Swift

Security Score

100/100

Audited on Mar 30, 2026

No findings