Swift 3 New Features

A fast-paced guide to get you up and running with Swift 3 and its new features

Swift 3 New Features

Keith Elliott

2 customer reviews
A fast-paced guide to get you up and running with Swift 3 and its new features
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781786469632
Paperback142 pages

Book Description

Since Swift was introduced by Apple in WWDC 2015, it has gone on to become one of the most beloved languages to develop iOS applications with. In the new version, the Swift team aimed to take its adoption to the next level by making it available for new platforms and audiences.

This book will very quickly get you up to speed and productive with Swift 3. You will begin by understanding the process of submitting new feature requests for future versions of Swift. Swift 3 allows you to develop and run your applications on a Linux machine. Using this feature, you will write your first Linux application using the debugger in Linux. Using Swift migrator, you will initiate a conversion from Swift 2.2 to Swift 3.

Further on, you will learn how to interact with Cocoa libraries when importing Objective C to Swift. You will explore the function and operator changes new to Swift 3, followed by Collection and Closure changes. You will also see the changes in Swift 3 that allow you write tests easier with XCTest and debug your running code better with new formats as well. Finally, you will have a running server written completely in Swift on a Linux box.

By the end of the book, you will know everything you need to know to dive into Swift 3 and build successful projects.

Table of Contents

Chapter 1: What Were They Thinking?
Apple's goals for Swift 3
Open source Swift
Contributing to Swift
Swift evolution process
Overview of accepted proposals for Swift 3
Summary
Chapter 2: Discovering New Territories – Linux at Last!
Downloading Swift
Swift 3 on Mac
Swift 3 on Linux
Using the REPL
Swift Package Manager
Our first Swift program
Summary
Chapter 3: Migrating to Swift 3 to Be More Swifty
How can you migrate your project…
Planning ahead
Migrating with Xcode's Swift migration tool
Summary
Chapter 4: Changes to Swifts Core Will Have You Asking for More
The grand renaming
Importing code from Objective-C and C APIs to Swift 3
Summary
Chapter 5: Function and Operator Changes – New Ways to Get Things Done
Function declaration changes
Summary
Chapter 6: Extra, Extra Collection and Closure Changes That Rock!
Collection and sequence type changes
A new model for collections and indices [SE-0065]
Quick takeaways
Closure changes for Swift 3
Summary
Chapter 7: Hold onto Your Chair; Advanced Type Changes Are Here!
Unmanaged and UnsafePointer changes
Type aliases and protocol changes
Floating point changes
Summary
Chapter 8: Oh Goodness! Look Whats New in the Foundation Framework
Mutability and Foundation value types
Value types versus reference types
Nested enumerations
Strongly typed string enumerations
Class properties
Type safe access with value types
Measurements and units
Summary
Chapter 9: Improving Your Code with Xcode Server and LLDB Debugging
Continuous integration overview with Xcode server
Configuring Xcode server
Managing and monitoring your integration runs
Debugging with LLDB
Managing breakpoints
Summary
Chapter 10: Exploring Swift on the Server
IBM Swift Package catalog
Introducing our server project
Summary

What You Will Learn

  • Migrate a Swift 2.2 project to Swift 3
  • Understand the workings of Swift Package Manager
  • Interact with Cocoa libraries when importing Objective C to Swift
  • Explore the function and operator changes new in Swift 3
  • Work with the advanced type changes, attribute improvements, and floating point type improvements in Swift
  • Discover the changes in the Swift API and see how Objective-C can be manipulated in the current API
  • Implement the new features central to Swift Testing and understand the new debug features
  • Create server-side applications using Swift 3

Authors

Table of Contents

Chapter 1: What Were They Thinking?
Apple's goals for Swift 3
Open source Swift
Contributing to Swift
Swift evolution process
Overview of accepted proposals for Swift 3
Summary
Chapter 2: Discovering New Territories – Linux at Last!
Downloading Swift
Swift 3 on Mac
Swift 3 on Linux
Using the REPL
Swift Package Manager
Our first Swift program
Summary
Chapter 3: Migrating to Swift 3 to Be More Swifty
How can you migrate your project…
Planning ahead
Migrating with Xcode's Swift migration tool
Summary
Chapter 4: Changes to Swifts Core Will Have You Asking for More
The grand renaming
Importing code from Objective-C and C APIs to Swift 3
Summary
Chapter 5: Function and Operator Changes – New Ways to Get Things Done
Function declaration changes
Summary
Chapter 6: Extra, Extra Collection and Closure Changes That Rock!
Collection and sequence type changes
A new model for collections and indices [SE-0065]
Quick takeaways
Closure changes for Swift 3
Summary
Chapter 7: Hold onto Your Chair; Advanced Type Changes Are Here!
Unmanaged and UnsafePointer changes
Type aliases and protocol changes
Floating point changes
Summary
Chapter 8: Oh Goodness! Look Whats New in the Foundation Framework
Mutability and Foundation value types
Value types versus reference types
Nested enumerations
Strongly typed string enumerations
Class properties
Type safe access with value types
Measurements and units
Summary
Chapter 9: Improving Your Code with Xcode Server and LLDB Debugging
Continuous integration overview with Xcode server
Configuring Xcode server
Managing and monitoring your integration runs
Debugging with LLDB
Managing breakpoints
Summary
Chapter 10: Exploring Swift on the Server
IBM Swift Package catalog
Introducing our server project
Summary

Book Details

ISBN 139781786469632
Paperback142 pages
Read More
From 2 reviews

Read More Reviews