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

Must be part of view hierarchy to use this method, see API docs for more info, GTXiLib contrastRatioOfUILabel check! #16

Open
selin194 opened this issue Sep 23, 2019 · 2 comments

Comments

@selin194
Copy link

Hey all, I have a question.

I used to receive errors of GTXiLib checks, however I start to receive error that says : failed: caught "NSInternalInconsistencyException", "Label <UILabel: 0x7f9f39166ea0; frame = (40 0; 53.6667 50); text = 'Design'; opaque = NO; autoresize = RM+BM; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x6000007991d0>> must be part of view hierarchy to use this method, see API docs for more info."

What could be has changed? Thank you so much! @niksawtschuk

@selin194
Copy link
Author

I guess this error is because of slow loading of elements.

@niksawtschuk
Copy link
Contributor

Seems like you are trying to do a contrast check on a label which does not exist in the window, which means making a snapshot (part of the method used to check contrast) will fail.

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

No branches or pull requests

2 participants