amplitude / Amplitude-Swift

Native iOS/tvOS/macOS/watchOS SDK
MIT License
32 stars 22 forks source link

feat: add swiftui tap autocapture support #197

Closed PouriaAmini closed 3 months ago

PouriaAmini commented 3 months ago

Summary

This PR adds support to automatically capture taps on SwiftUI elements that do not fire UIControl action methods.

New property:

[Amplitude] Target Type: The accessibility trait of the UI element that the user interacted with. Possible values are Button, Link, Image, Search Field, Keyboard Key, Static Text, Header, Tab Bar, and Toggle Button.

Checklist