Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift 3 New Features

You're reading from   Swift 3 New Features Get up to date with what`s new in Swift 3

Arrow left icon
Product type Paperback
Published in Oct 2016
Publisher Packt
ISBN-13 9781786469632
Length 142 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Keith Elliott Keith Elliott
Author Profile Icon Keith Elliott
Keith Elliott
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. What Were They Thinking? FREE CHAPTER 2. Discovering New Territories – Linux at Last! 3. Migrating to Swift 3 to Be More Swifty 4. Changes to Swifts Core Will Have You Asking for More 5. Function and Operator Changes – New Ways to Get Things Done 6. Extra, Extra Collection and Closure Changes That Rock! 7. Hold onto Your Chair; Advanced Type Changes Are Here! 8. Oh Goodness! Look Whats New in the Foundation Framework 9. Improving Your Code with Xcode Server and LLDB Debugging 10. Exploring Swift on the Server

How can you migrate your project…


When you open a Swift 2.2 project in Xcode 8 for the first time, you are given the option to migrate your project to either Swift 2.3 or Swift 3 in order to take advantage of the new SDKs. However, if for some you decide that now is not the right time to convert, you can always do so later. The Swift Migrator tool is accessible in Xcode 8 under the Edit | Convert | To Current Swift Syntax… menu.

You will need to convert your code if you want to use the new SDK's available for iOS 10, macOS 10.12, watchOS 3, or tvOS 10. You have two options for migrating your project listed below:

Option1 - Migrating to Swift 3

If you want to build against the latest Swift and use all of the new features of Xcode 8, then choose the migrate to Swift 3 option. The Migrator will modify your source files to adhere to the new Swift 3 syntax.

Option 2 - Migrating to Swift 2.3

If you just want to use the new SDKs and aren't ready or able to migrate to the latest version of Swift, then...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image