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

Custom naming of views #9

Open
simonpac opened this issue Jul 26, 2018 · 1 comment
Open

Custom naming of views #9

simonpac opened this issue Jul 26, 2018 · 1 comment

Comments

@simonpac
Copy link

Instead of View1 or View2, it would be neat if we could change it to something easy to remember. Right now I have to write down the memory address of view1, launch the view debugger and cross reference the address from wtfautolayout to find out that view1 actually is CustomHeaderView. For a couple views its pretty easy, but gets difficult as more views are on the screen.

@johnpatrickmorgan
Copy link
Owner

johnpatrickmorgan commented Jul 30, 2018

Thanks a lot for raising this issue. Being able to edit view names would be a nice enhancement, and might fit well with #7.

It might also be useful to point out a few ways to see more meaningful names in the logs, which should then be displayed on wtfautolayout.com:

  • If the view is a custom subclass, you should see the name of its custom class. You should only see View1, View2 etc. for plain UIViews.
  • If the view has its accessibilityIdentifier set, you should see that identifier in the logs.

If you find it's not behaving that way, please share the input. Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants