This tutorial will introduce you to creative-coding on iOS with C4, a powerful framework for creating expressive artworks and user experiences. Written entirely in Swift, C4 takes a modern approach to working with animation, gestures and media. For example, there are no draw loops – you create animations by defining states and changing properties. You can attach a gesture to any object by using a simple block of code, and easily customize the number of touches, taps and more, to trigger it. You can create images, audio and video players by simply stating the name of a file, and with images you can apply filters. Yet, to say that C4 handles only animation, interaction and media would do it a disservice. There is vector math, an event system for sending messages between objects, a transform class for performing matrix calculations, camera access, and much more.
To give you a good sense of what you can achieve with C4, this tutorial will cover the following key concepts: Properties, Layers, Animations and Gestures. The examples have been carefully designed to introduce you to a wide variety of the objects, tricks and subtle techniques that make C4 shine.