Book Image

Beginning Swift

By : Rob Kerr, Kåre Morstøl
Book Image

Beginning Swift

By: Rob Kerr, Kåre Morstøl

Overview of this book

Take your first foray into programming for Apple devices with Swift.Swift is fundamentally different from Objective-C, as it is a protocol-oriented language. While you can still write normal object-oriented code in Swift, it requires a new way of thinking to take advantage of its powerful features and a solid understanding of the basics to become productive.
Table of Contents (10 chapters)


In this lesson, you've learned how to use Swift's key language:

  • Assignment, arithmetic, and bitwise operators

  • Comparison and range operators

  • The Swift branching features: if and switch

  • Loops: for, while, repeat…while

You now have the skills needed to develop robust applications using Swift's powerful and expressive language syntax. In the next lesson, you'll learn the skills to develop functions and classes to organize your code. You will also explore and use error handling to efficiently handle unexpected errors in your programs.