There’s not that much to say about testing. Just a couple of facts to keep ing mind. I want to keep this section short and then leave you into the world with all your new skills so you can get to work on your project.
Luckily, Xcode 8 introduced a bunch of new features that can help you create and maintain beautiful layouts so you don’t have to worry about that all too much. Now there are also some tools that allow you to test your layouts inside of Xcode. We’ve seen it before but I want to dress them quickly. This basically is the live preview of your layout with constraints and makes debugging the constraints a little bit easier if you choose to create the layout using the Interface Builder. If you get more advanced and work with teams you most likely will not be working in interface builder anymore but like I said, for practicing purposes the Interface Builder is just a great tool.
Finally I want to make you aware of the fact that even though this is a live preview, this doesn’t mean that everything works as well on a real device or the simulator as it does in the live preview.
I’d recommend when building a layout to test it every once in a while inside of the simulator or even better on a real device. Nothing beats living the experience that someone else might too on their device. Put yourself in your users shoes and test as much as you can on different devices and device sizes.
That’s all I have for you in this module. If you purchased the bonus content of this module as well make sure to check it out.
Either way, note that it is crucial with this topic that you practice this stuff so that it will find its way into your workflow naturally. There will be this project when you think: „What wasn’t there a clever way to create adaptable layouts?“ and you’ll remember everything from this module. If you don’t remember don’t worry. These videos don’t go away. You can watch them as often as you like and you can go through everything again and again and that’s what I encourage you to do!
Also I have appended the whole transcript of the module in text right below the lessons, so if you look for something special, just use the search function in your browser in the specific lesson or view the full transcript and search in there.
As a practice I’d recommend you try to build the login screen example we’ve been creating in this module. If you’ve done that, there is another exercise that I’ll append into the bonus content that will help build understanding for creating layouts that might not be that obvious at first. But don’t get frustrated if this is giving you a hard time. Spend some time and you can come up with the solution. After you’ve created the layout yourself or if you’re stuck, you can watch the solution video that will show you how I solved the problem.
This is an excellent opportunity to test your knowledge and practice thinking outside-the-box with auto-layout.
It’s now up to you to apply this knowledge. Practice and get better and I promise you won’t regret learning auto-layout because it is an amazing concept!
That’s all I have for you in this module.
Now, Happy Coding