Bits and Bytes in Real Life

In this section, you are going to pull in a file and read its bits and bytes. You should be able to decode the file according to the specifications. Let’s see what you can do with it. If you are using a Mac, then you already have Python installed, which means you can simply start a local webserver without installing anything. You are going to host a GIF file and read it in. You can use any GIF you want, but I have prepared one for you at http://i.imgur.com/j74SykU.gif.

To start up a new single-view application, follow these steps:

1. Select File > New > Project.

2. Make sure IOS > Application is selected and click on Single View Application.

3. Set Product Name to GIFReader and make sure language is set to Swift. ...

Get Learning Swift™ Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.