Learn how to customize the position and size of our views for different Size Classes by adding new constraints and uninstall existing constraints based on Size Class.
Is there a way we can edit a constraint for a particular size class? Let me give an example - Suppose I have a constraint whose constant value is 20 for all size classes. I want to make it 8 for a few size classes. Can I do that?
Yes, if you double-click on the constraint, next to the “Constant” field, there should be a “+”. If you click that you can specify a new value for a size class. Once you pick the size class, you can enter a new value. It’s very similar to the challenge from video 1, just using the “constant” field instead of the “installed” checkbox.
You should be able to use auto and adaptive layout to get the size of the web view itself to fill the space, but for the content, you’ll have to use css or html to move the content.
Sorry, I must have missed the last time it was mentioned. If you remove all the code from the ViewController class, it should fix the issue. That MapKit code is for a future step and doesn’t need to be there at this point.