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

Adding support to ignore the Ascender/Descender in views that display text #20

Closed
GoldenJoe opened this issue Apr 16, 2017 · 3 comments
Closed

Comments

@GoldenJoe
Copy link

GoldenJoe commented Apr 16, 2017

Not really sure how you would like to implement this in the main project, but I wrote an extension that allows you to easily align the top and bottom edges of UILabel and UITextView so that they line up visually with the top/bottom of the text instead of being off a little due to ascender/descender.

https://pastebin.com/hYum9uLf

@roberthein
Copy link
Owner

I really like your solution for this problem, very smart. 💯
But I think it is too specific to include in the framework.

@GoldenJoe
Copy link
Author

Fair enough. Mind if I use your framework as a base for my own version? I like most of what you have going on.

@roberthein
Copy link
Owner

It's a free world! 🤘 You can use whatever code you find in TinyConstraints as you see fit.
Though I would appreciate it a lot if you keep sharing good ideas about the subject 😉

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