Reply to onTapGesture is working for finger, but not Pencil You should also be able to set the contentShape on the ZStack to Rectangle() with the .contentShape(..) modifier. UI Frameworks SwiftUI May ’20