-
Notifications
You must be signed in to change notification settings - Fork 148
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
editing_style: :none not working properly with VoiceOver #653
Comments
The problem happens because of the existence of the tableView:commitEditingStyle:forRowAtIndexPath: method. As long as it exists VoiceOver will falsely report the cell as deletable. Some metaprogramming might fix this. Oh.. except RubyMotion doesn't have define_method. Oh dear... Well there goes that idea. |
We could extend the TableScreen instance with a module, something like this: module ProMotion::Table::Deletable
def tableView:commitEditingStyle:forRowAtIndexPath: # < i know this is wrong, in a hurry
end
end
...
screen.extend(PM::Table::Deletable) if @deletable # whatever |
Ah yes, much simpler. Yes, include the module if the table has any cells with an editing style of delete or insert. |
Please see pull request #678 |
👍 |
As per #690, including the |
Based on https://gist.github.com/d-ronnqvist/3584ccf3379f9c318e4f I think i may have found a valid solution to this. @austinseraphin can you please check out the branch |
Yes this works. |
Perhaps unrelated, when I have the editing style set to insert it still says swipe to delete. I don’t know if this happens because of a VoiceOver bug or a bug in ProMotion. I’ll dig a little. But for now the regular cells don’t report any actions, the original point of this bug report.
|
Per @austinseraphin's tweet: https://twitter.com/AustinSeraphin/status/582650809772568576
The text was updated successfully, but these errors were encountered: