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

Debug mode to draw guide lines on a font label #63

Open
graiz opened this issue Aug 21, 2015 · 1 comment
Open

Debug mode to draw guide lines on a font label #63

graiz opened this issue Aug 21, 2015 · 1 comment

Comments

@graiz
Copy link

graiz commented Aug 21, 2015

Example:

Image of Yaktocat

The text would perhaps be drawn on tap or selection.

@ZevEisenberg
Copy link
Collaborator

Nice graphic 😜

I like this idea. It could be on a subclass of UILabel, or perhaps a category with runtime magic (swizzling -drawTextInRect:). If a subclass, we could also add an IBDesignable to draw these lines in IB. unfortunately, you still can't align things by x-height or cap height directly in IB, so I don't know how useful that would be, but it would at least be a useful visualization tool.

Also: this should work on multi-line labels.

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