Swift For Dummies

  • 4h 46m
  • Jesse Feiler
  • John Wiley & Sons (US)
  • 2015

Brimming with expert advice and easy-to-follow instructions, Swift For Dummies shows new and existing programmers how to quickly port existing Objective-C applications into Swift and get into the swing of the new language like a pro. Designed from the ground up to be a simpler programming language, it's never been easier to get started creating apps for the iPhone or iPad, or applications for Mac OS X.

Inside the book, you'll find out how to set up Xcode for a new Swift application, use operators, objects, and data types, and control program flow with conditional statements. You'll also get the scoop on creating new functions, statements, and declarations, learn useful patterns in an object-oriented environment, and take advantage of frameworks to speed your coding along. Plus, you'll find out how Swift does away with pointer variables and how to reference and dereference variables instead.

  • Set up a playground development environment for Mac, iPhone, iPad, and wearable computers
  • Move an existing Objective-C program to Swift
  • Take advantage of framework components and subcomponents
  • Create an app that uses location, mapping, and social media

Whether you're an existing Objective-C programmer looking to port your code to Swift or you've never programmed for Apple in the past, this fun and friendly guide gets you up to speed swiftly.

About the Author

Jesse Feiler is a developer, trainer, and author. A veteran developer on all iOS and OS X products, he is also the author of iOS App Development For Dummies. Jesse is heard regularly on “The Roundtable,” a program of WAMC Public Radio for the Northeast.

In this Book

  • Introduction
  • Setting up an Xcode Swift Project
  • Playing in the Playground
  • Using the Xcode Editing Tools
  • Creating a Swift App
  • Operating on Data
  • Using Swift Types
  • Collecting Objects
  • Controlling the Flow
  • Functioning Successfully
  • Expressing Yourself
  • Declaring the Symbols
  • Initializing and Deinitializing Data
  • Expanding Objects with Extensions
  • Managing Access Control for Your Objects
  • Building Classes, Structures, and Enumerations
  • Using Properties, Variables, Outlets, and Actions
  • Working with Enumerations to Consolidate Values
  • Using Protocols to Provide Templates for Functionality
  • Mixing Objective-C and Swift
  • Ten Swift Features That Aren't in Objective-C
  • Ten Swift Features That are Not in C
  • Ten Objective-C Features That aren't in Swift