Skip to Content
iOS 10 Programming Fundamentals with Swift
book

iOS 10 Programming Fundamentals with Swift

by Matt Neuburg
October 2016
Beginner content levelBeginner
400 pages
17h 20m
English
O'Reilly Media, Inc.
Content preview from iOS 10 Programming Fundamentals with Swift

Part I. Language

This part of the book teaches the Swift language, from the ground up. The description is rigorous and orderly. Here you’ll become sufficiently conversant with Swift to be comfortable with it, so that you can proceed to the practical business of actual programming.

  • Chapter 1 surveys the structure of a Swift program, both physically and conceptually. You’ll learn how Swift code files are organized, and you’ll be introduced to the most important underlying concepts of the object-oriented Swift language: variables and functions, scopes and namespaces, object types and their instances.

  • Chapter 2 explores Swift functions. We start with the basics of how functions are declared and called; then we discuss parameters — external parameter names, default parameters, and variadic parameters. Then we dive deep into the power of Swift functions, with an explanation of functions inside functions, functions as first-class values, anonymous functions, functions as closures, curried functions, and function references and selectors.

  • Chapter 3 starts with Swift variables — their scope and lifetime, and how they are declared and initialized, along with features such as computed variables and setter observers. Then some important built-in Swift types are introduced, including Booleans, numbers, strings, ranges, tuples, and Optionals.

  • Chapter 4 is all about Swift object types — classes, structs, and enums. It explains how these three object types work, and how you declare, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

iOS 11 Programming Fundamentals with Swift

iOS 11 Programming Fundamentals with Swift

Matt Neuburg

Publisher Resources

ISBN: 9781491970065Errata Page