Summary

In this chapter, we implemented our first complete app, beginning with using basic components and then moving on to using more advanced techniques to create a smooth animation without relying on game frameworks such as Cocos2d or SpriteKit.

We saw when, and how, to use structs in an effective way and how to split responsibilities among different classes. Moreover, we experimented and saw how to separate different parts of the same class using extensions and how to design an interface of a class or struct, pretending we have already implemented it.

You learned a few things about puzzle games, and now it's time to move on to something different but more similar to a normal app; we'll have a chance to work on a TodoList app.

Get Swift 2 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.