
Create a simple hello world app for iPhone using Xcode and storyboard, guided by MVC, interface builder, and a single button.
Build a simple hello world app by wiring a button to an action that updates a UI label via an outlet, demonstrating Swift optionals, weak references, and interface builder basics.
Explore Swift's primitive types, including int, double, string, bool, and tuple, and learn how explicit type annotations, casting, and strong type checking guide numeric and graphics values.
Define booleans in Swift as true or false and test them explicitly. Learn how optional values affect booleans, avoid unwrapping nil, and use string interpolation to display results.
Explore Swift tuples: group multiple types into a single value, access elements by index or name, use named elements and wildcards, and return tuples from functions.
Master Swift basic function syntax, including parameter lists, optional returns, and external vs internal parameter names, with arrows and parentheses guiding calls.
Learn how swift treats value types and reference types, value types copy when passed to functions; reference types pass objects; use inout with ampersand for mutating and tuple swaps.
Explore swift enumerations as a type definition that can take one of red, amber, or green, with type association and inferred states, illustrating how enums replace unions.
Learn how enumerations can have initializers, including a default initializer that sets self to Sunday for a days of week example, and raw value initializers for enums with raw values.
Explore computed properties in Swift 2 by deriving a circle's area from its radius with a getter, updating radius via a setter from an area, and using willSet and didSet.
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.