-
Notifications
You must be signed in to change notification settings - Fork 57
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
Unable to swipe to delete cell in iOS7 #16
Comments
I have a local fix for this. Unfortunately, it relies on a lot of other changes. I'll be sending out a code review for all these changes tonight (PST). |
Is there any update on the code review? |
After the code review, it turned out that there are still some issues. The core issue is that, in the simulator, UIAutomation can't perform drags properly. I just tested this out in UIAutomation, the Javascript testing framework that ships with Instruments, and it turns out dragging is broken in UIAutomation is iOS 7. Since Frank's event simulation is based on UIAutomation, it's broken in Frank as well. We're working on an alternative, but it changes how Frank simulates events. In the meantime, we've filed a bug with Apple, and hope that they will solve the issue. |
Thank you @MichaelBuckley for the update |
Is there any chance of getting even a patch file of the work you were doing? Given this bug still exists and is causing my team issues, I'm trying out anything to get gesture support working in Frank. Any help would be greatly appreciated. |
In fact, the entire branch I was working on has been uploaded to Github. On Thu, Jul 24, 2014 at 3:44 PM, Nick Gravelyn [email protected]
|
Awesome, I'll compare that with Frank and see if I can get things working. |
I was able to build and use that branch, with some modifications, to get swiping to work. Related: would there be any reason I couldn't make my own static library with the KIF functionality so I can use the latest Frank build but extend it with my own methods? I've tried pulling out what is in this branch but it doesn't want to swipe anything. Is there a conflict with having PublicAutomation in the base Frank library with KIF code that you know of? |
I'm not 100% I understand what you're asking, but the branch I created is On Mon, Jul 28, 2014 at 10:05 AM, Nick Gravelyn [email protected]
|
What I'm hoping to do is have my own static library which would contain all the KIF code that I could then link into our Frankified app to do gestures. We already have a static library that adds some helpers onto various view types. So we'd like to add the KIF gestures to that library as well, that way we aren't using a custom version of libFrank.a in our app. So my concern then was whether or not libFrank.a still linking PublicAutomation/UIAutomation would cause the KIF logic to completely fail, as I have yet to be able to get KIF working from a separate static library, yet it seems to work fine when building off your branch. |
It sounds like what you want is to move all the KIF-specific code to a drag_with_initial_delay(:from => selector1, :to => selector2). However, this will call code in libFrank.a which uses PublicAutomation, def custom_drag_with_intiial_delay(args) dest_frame = accessibility_frame(to) frankly_map( from, end And you'd have to do the same for every other KIF gesture that you wanted If you use a custom libFrank.a built from my branch, you can just use the On Tue, Jul 29, 2014 at 12:40 PM, Nick Gravelyn [email protected]
|
Yes, we'd like to have our own implementations that we either call directly with frankly_map or wrap ourselves. While replacing libFrank.a is easiest, at this time that requires that we maintain our own fork and merge in any other changes. We'd like to avoid have a custom Frank build which is why we prefer a separate static library approach, at least until such time when Frank officially supports the KIF input code path. At this point, though, I've not succeeded in getting a separate static library to actually work. The KIF code executes but nothing seems to happen in the app. I've yet to do any deep debugging, but my theory was that perhaps the PublicAutomation library was doing something that would interfere with the KIF injection working. |
That's a possible explanation. PublicAutomation is just a wrapper around But that would only happen if you called any PublicAutomation functions, If you're not calling any PublicAutomation functions, you'll probably need But since you're doing all that work anyway, I would encourage you to spend What you're attempting to do with static libraries appears from the outside On Tue, Jul 29, 2014 at 1:01 PM, Nick Gravelyn [email protected]
|
swipeInDirection no longer works in iOS7. Need new function to enable swiping cells to delete them.
The text was updated successfully, but these errors were encountered: