Skip to content

feat: add swiftui tap autocapture support #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

PouriaAmini
Copy link
Contributor

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

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: no

PouriaAmini and others added 30 commits July 2, 2024 09:28
@PouriaAmini PouriaAmini self-assigned this Jul 18, 2024
}

private class _AmplitudeSwiftUIGestureRecognizer: UITapGestureRecognizer {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added this to be able to later distinguish the custom gesture recognizer from the others in the window.

@PouriaAmini PouriaAmini requested a review from crleona July 18, 2024 16:35
@PouriaAmini PouriaAmini marked this pull request as draft July 19, 2024 15:28
@PouriaAmini PouriaAmini removed their assignment Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant