Hi Piotr
Thanks for the post and sorry you're having trouble with the layout challenge. I decided to use laying out this app at this point as a challenge as we'd already gone over how to add constraints in a complex layout for this app in portrait orientation in chapter 6, and going over the steps again for a slight tweak to the layout in landscape orientation felt too repetitve.
Looking over this section again though, I can see how it could be frustrating if you can't resolve the challenge - constraints can definitely be complicated and frustrating (in fact if you read on into the stack views section I write: "Let’s be honest – auto layout and constraints can be a pain to deal with sometimes.") !!
And though there is a solution in the sizeclasses branch of the github repo, I think it would be great for readers to have some way of seeing the steps of how to arrive at the solution. I am currently working on video tutorials to accompany the book, and I am thinking solving this challenge would be a great candidate for a video. Would that help? When it is ready I will let you know here.
In the meantime, I'd say not to get too bogged down with this problem - it shouldn't hold you up from continuing on - in fact the stack views section will introduce you to an alternative approach which you will probably find much more straight-forward!
Good luck with it!
|