Teaching App Development with Swift

FingerPainter

Level 3, Six Lessons

Lead students in reaching a fundamental understanding of Core Graphics. Illustrate the building blocks of drawing with Core Graphics contexts and functions. Facilitate the development of a touch-based drawing strategy, and teach students how to respond to touch events.

The Finished App

Familiarize yourself with the project, and demonstrate the app students will build.

Lesson 1

Introduce drawing with Core Graphics functions to render a custom UIView object, to illustrate object-oriented inheritance.

Lesson 2

Facilitate the development of a touch-based drawing strategy by overriding UIResponder event handlers to respond to touch events.

Lesson 3

Teach students how to capture the coordinates of touches, while exploring Swift sets and placeholder types.

Lesson 4

Facilitate an understanding of the drawing strategy by inspecting event handlers and coordinates for drawing. Demonstrate using optionals, optional binding, and external parameter names.

Lesson 5

Demonstrate using a UIImageView object and Core Graphics to implement a dynamic, user-generated drawing.

Lesson 6

Facilitate the practice of implementing button behavior with a controller action to clear the UIImageView.

The course materials only, and not any other content of this web page, are to be used pursuant to a Creative Commons license, as specified in the license information within the course materials.

Trademark Information

The Swift logo, Apple, the Apple logo and other Apple trademarks, service marks, graphics, and logos used in connection with the Swift Education project are trademarks or registered trademarks of Apple Inc. in the US and/or other countries. Other trademarks, service marks, graphics, and logos used in connection with the Swift Education project may be the trademarks of their respective owners. You are granted no right or license in any of the aforesaid trademarks, and further agree that you shall not remove, obscure, or alter any proprietary notices (including trademark and copyright notices) that may be affixed to or contained within the Service.

For further information about proper referential uses of the Swift logo, please review the “Guidelines for Using Apple Trademarks and Copyrights”.