This course teaches the basics of version 2 of the Swift language. Swift is a powerful language used to develop applications for iPhone, iPad, and OS X. In this course, you’ll learn about Xcode 7 (Apple’s integrated development environment), and learn to write short programs in Swift, which will prepare you to start learning to develop full applications for Macs and Apple’s mobile devices.
The course contains over 5 hours of video demos and many source code examples. It is divided into six units:
Unit 1: Xcode - covers the various parts of the Xcode interface and how to use them
Unit 2: Swift types - covers variables and constants and the various basic data types in Swift, along with a full discussion of optionals.
Unit 3: Collections and control structures - learn about arrays, sets, and dictionaries, which are used to group basic types into collections. Also covers loops and decision constructs in the Swift language.
Unit 4: Functions - beginning with a discussion of value and reference types, we explore Swift function syntax, which forms the basis for methods in object oriented code. We’ll also discuss closures, and give examples of when and how to use them.
Unit 5: Enumerations - Forget those simple C enums: Swift’s enumerations can contain methods, and the members of an enum may have underlying values, no values at all, or may be of different values altogether!
Unit 6: Structures and Classes - In Swift, structures (as well as classes) may have both properties and methods defined. We’ll focus mainly on the property syntax here (the method syntax is the same as function syntax, covered in Unit 4). A full discussion of stored and computed properties, property observers, lazy and static properties. We’ll conclude with a demo on inheritance.
All units have full source code and exercises (along with answers) to test your knowledge.