Swift Essentials

Get up and running lightning fast with this practical guide to building applications with Swift

Swift Essentials

This ebook is included in a Mapt subscription
Dr Alex Blewitt

Get up and running lightning fast with this practical guide to building applications with Swift
$10.00
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
Preview in Mapt

Book Details

ISBN 139781784396701
Paperback228 pages

Book Description

Swift is a new and powerful programming language that represents an essential new programming tool for iOS and OSX applications and builds upon the power of Objective-C while streamlining the developer experience.

Swift Essentials is a fast-paced, practical guide showing you the quickest way to put Swift to work in the real world. It guides you concisely through the basics of syntax and development before pushing ahead to explore Swift's higher features through practical programming projects.

By the end of the book, you will be able to use Xcode's graphical interface builder, create interactive applications, and communicate with network services.

Table of Contents

Chapter 1: Exploring Swift
Getting started with Swift
Conditional logic
Iteration
Functions
Command-line Swift
Summary
Chapter 2: Playing with Swift
Getting started with playgrounds
Displaying objects with QuickLook
Advanced techniques
Playgrounds and documentation
Limitations of playgrounds
Summary
Chapter 3: Creating an iOS Swift App
Understanding iOS applications
Creating a single view iOS application
Swift classes, protocols, and enums
Creating a master-detail iOS application
Summary
Chapter 4: Storyboard Applications with Swift and iOS
Storyboards, scenes, and segues
Adding a navigation controller
Swift and storyboards
Using Auto Layout
Summary
Chapter 5: Creating Custom Views in Swift
An overview of UIView
Creating new views with interface builder
Creating views by subclassing UIView
Custom graphics with drawRect
Custom graphics with layers
Summary
Chapter 6: Parsing Networked Data
Loading data from URLs
Parsing JSON
Parsing XML
Direct network connections
Summary
Chapter 7: Building a Repository Browser
An overview of the GitHub API
The RepositoryBrowser project
Creating the client
Accessing repositories from view controllers
Summary

What You Will Learn

  • Explore the nuts and bolts of the Swift syntax
  • Test Swift code interactively with the REPL
  • Display graphics with QuickLook in the Swift playground
  • Present data in master-detail applications
  • Use the Swift storyboard to manage multi-screen applications
  • Create graphical UIViews with Swift
  • Parse JSON and XML data from network sources
  • Build a standalone iOS application from start to finish

Authors

Table of Contents

Chapter 1: Exploring Swift
Getting started with Swift
Conditional logic
Iteration
Functions
Command-line Swift
Summary
Chapter 2: Playing with Swift
Getting started with playgrounds
Displaying objects with QuickLook
Advanced techniques
Playgrounds and documentation
Limitations of playgrounds
Summary
Chapter 3: Creating an iOS Swift App
Understanding iOS applications
Creating a single view iOS application
Swift classes, protocols, and enums
Creating a master-detail iOS application
Summary
Chapter 4: Storyboard Applications with Swift and iOS
Storyboards, scenes, and segues
Adding a navigation controller
Swift and storyboards
Using Auto Layout
Summary
Chapter 5: Creating Custom Views in Swift
An overview of UIView
Creating new views with interface builder
Creating views by subclassing UIView
Custom graphics with drawRect
Custom graphics with layers
Summary
Chapter 6: Parsing Networked Data
Loading data from URLs
Parsing JSON
Parsing XML
Direct network connections
Summary
Chapter 7: Building a Repository Browser
An overview of the GitHub API
The RepositoryBrowser project
Creating the client
Accessing repositories from view controllers
Summary

Book Details

ISBN 139781784396701
Paperback228 pages
Read More

Read More Reviews