Skip to content
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

Expose signal for .primaryActionTriggered (on tvOS) #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Marus
Copy link

@Marus Marus commented Apr 24, 2020

tvOS makes more extensive use of the .primaryActionTriggered UIControl.Event - this exposes a onPrimaryActionTriggered signal for UIControls - currently on tvOS only.

In theory this action can be used on iOS (I believe pressing the done button on the keyboard triggers this event in text fields for example) as well - but it is only available on iOS versions 9.0 and above and the library currently has a minimum iOS version of 8.0. This in theory could be cleaned up (removing the various #if os(tvOS) compiler conditional bits and returning the eventToKey to not use a closure to initialize) by bumping the min os version. Personally I doubt iOS 8 support has any value - but can't make that call for you.

…ntly (for example on "clicking" a UIButton) - this exposes a signal for .primaryActionTriggered for tvOS
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