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

Added the lastBaseline property to LayoutProxy #184

Merged
merged 1 commit into from
Dec 12, 2015

Conversation

EliaCereda
Copy link
Contributor

LayoutProxy didn't have a property for NSLayoutAttribute.LastBaseline so I added it myself. Or is there a reason for why it's missing?

I tested the code in my application and it looks like it's working.

@robb
Copy link
Owner

robb commented Dec 12, 2015

Thanks for the Pull Request 💖

Would you mind adding a test that verifies the intended behavior?

@EliaCereda
Copy link
Contributor Author

Alright, let me look into it. ;)

Elia Cereda

Il giorno 12 dic 2015, alle ore 08:42, Robert Böhnke notifications@github.com ha scritto:

Thanks for the Pull Request

Would you mind adding a test that verifies the intended behavior?


Reply to this email directly or view it on GitHub #184 (comment).

@EliaCereda
Copy link
Contributor Author

Looking at the code, I don't see any test for baseline and firstBaseline either. It's not entirely clear to me how should we test for correctness. The relation between the baselines of a view and its frame is not straightforward.

@robb
Copy link
Owner

robb commented Dec 12, 2015

Fair enough, let's leave this for future generations to worry about ¯_(ツ)_/¯

robb added a commit that referenced this pull request Dec 12, 2015
Added the lastBaseline property to LayoutProxy
@robb robb merged commit f3b851f into robb:master Dec 12, 2015
@EliaCereda EliaCereda deleted the last-baseline branch December 12, 2015 22:22
@EliaCereda EliaCereda restored the last-baseline branch December 12, 2015 22:56
@EliaCereda EliaCereda deleted the last-baseline branch May 15, 2016 14:46
@EliaCereda EliaCereda restored the last-baseline branch May 15, 2016 14:48
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

Successfully merging this pull request may close these issues.

2 participants