Book Image

Swift by Example

By : Giordano Scalzo
Book Image

Swift by Example

By: Giordano Scalzo

Overview of this book

Table of Contents (15 chapters)

The app is…

The most common, and perhaps the simplest, way to learn to develop an iOS app is by starting with a to-do list where the user can add tasks, show them, and change their status.

You need to be aware that a generic utility app for iOS must handle the following:

  • Getting data from the user

  • Presenting data obtained from the user

  • Manipulating data

  • Somehow saving data

  • Synchronizing data with a server

Our Todolist app has all of these features except the last one, and it can be considered the prototype of all utility apps. Let's define the specifications of our app. The first, and the most useful, screen must present the list of Todos, as this screenshot shows:

Each one out of the list of Todos has a description, due date, and containing list (Family, Personal, Work, and so on), which can be used to filter and catalogue the tasks. A checkbox indicates whether the corresponding task is done or still open.

The user can perform three different actions: edit, delete, or set a particular Todo task...