Skip to content

Implement auto layout exercise #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthewcarroll
Copy link
Collaborator

Implement auto layout exercise. Set the following constraints:
width ratio constraint to constrain the image width to 1/3 the cell width
image aspect ratio to 3:4
trailing space constraints for the labels to not clip their text
alignment constraints for the labels: top, center, and bottom respectively from the labels to the image view

= 10 top space constraint from the description to the image bottom
bottom space constraint from the description to the superview

A few of the images are distorted when drawn with an aspect ratio of 3:4, e.g. Venus and Mars.
This is due to the AC that the aspect ratio be 3:4.

width ratio constraint to constrain the image width to 1/3 the cell width
image aspect ratio to 3:4
trailing space constraints for the labels to not clip their text
alignment constraints for the labels: top, center, and bottom respectively from the labels to the image view
>= 10 top space constraint from the description to the image bottom
bottom space constraint from the description to the superview

A few of the images are distorted when drawn with an aspect ratio of 3:4, e.g. Venus and Mars.
This is due to the AC that the aspect ratio be 3:4.
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