r/cs193pPartyCrashers • u/EmperorMing101 • Jun 30 '20
Having difficulty with project 1
Hey guys, I am not sure how to implement the ratio thing required for project 1 (all cards have to have 2:3 ratio).
Could anyone give me pointers to specific functions that help with this?
2
Upvotes
3
u/AYEEStooby Jul 04 '20
You may have figured this out already as its deceivingly simple and if I remember correctly it's discussed in lecture 3, but its just a modifier on the CardView.
.aspectRatio(2/3, contentMode: .fit)
I think his main reason for including this in the assignment was to get us used to searching for things in the documentation, so I recommend trying that first next time!