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
Implement layout margins relative arrangement. #27
Implement layout margins relative arrangement. #27
Conversation
I'm using this fork now, and it's very nice and works as intended. 👍 |
This looks great!!, Sorry for the later reply, Can you add a couple of test cases to verify the margin alignment? Otherwise I will add them my self in the weekend. |
Yes, I’ll try to add them in the weekend. |
Any updates? I'm anxious to try this fork with the latest updates to master 😁 |
Hey, Me too :D. |
Sorry about the delay. I added the missing tests to the project. |
Great, this addition is super cool! |
Merged! Thanks! |
layout margins relative arrangement
This PR implements the layout margins relative arrangement feature. It defines two new properties:
The first one just defines the missing
layoutMargins
property on iOS7.The second one switches the layout relative to margins.
I also added some buttons to visualize the feature in the example App.
bonus
CATransformLayer
we could not set abackgroundColor
on it to help visualize the layout. I fixed this by placing a background view behind the stackView and constraining it to have the same size and center of the stackView.