Comments (8)
Created PR: #18
from hammer.
Hello, we recently got a report about hit test issues in some scenarios and made some update on the latest version. Please confirm if using version 0.10.0 fixes your issues and let me know.
from hammer.
I just tried 0.10.2 and now fingerDown(at: linkButton)
throws HammerError.viewIsNotVisible
. it seems the view has an ancestor, a UICalloutBar
, that has an alpha of 0. not sure why, since I can see the callout bar in the simulator.
from hammer.
Hmm It shouldn't be visible if it has an alpha of 0 š¤ Would you be willing to send me an export of the view hierarchy inspector or a code sample that I can run?
from hammer.
OK right after I make the UITextEffectsWindow
key I no longer see the callout bar in the view hierarchy debugger (even though it is still visible in the simulator). And I get this message on the console:
UITextEffectsWindow should not become key. Please file a bug to Keyboard | iOS with this call stack: ā¦
Iām making it key since creating an EventGenerator
from it throws otherwise. Is there any way you could remove the isKeyWindow
requirement for the UITextEffectsWindow
?
from hammer.
Interesting, I though that it needed to be a keyWindow to receive touches but I might be wrong, maybe that requirement was just for keyboard stuff. Can you remove that check locally and confirm it works? I would want to add a test to ensure this works if we're changing stuff for it
from hammer.
Can you remove that check locally and confirm it works?
It works for me. I opened #16. What kind of test were you thinking of? I was thinking maybe we could add a test that uses the callout bar to copy and paste some text inside a UITextField.
from hammer.
Yeah verified that it doesn't seem to be needed for touches, only for keyboard. I'm improving some tests and will create a PR
from hammer.
Related Issues (14)
- Question: Watch Support HOT 3
- Working with SwiftUI Lists? HOT 2
- Unable to access private API in UIWindow: "ContextID" HOT 8
- Hammer fails to build with Xcode 13 beta 4 HOT 3
- viewIsVisible Implementation Incorrect HOT 6
- How to use in Objective-c project HOT 2
- Xcode 13.3 can't compile Hammer 0.14.0 HOT 3
- New console log warnings and suggestions on flaky tests? HOT 2
- SFSafariViewController support
- Missing support for `.stationary` touches HOT 3
- Tests are only failing in remote CI pipeline. HOT 2
- waitUntilHittable never waits? HOT 1
- cocoapods support? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hammer.