Book description
Swift 3 is the first significant release since Apple’s heralded programming language became an open source project in late 2015. In this report, Jon Manning, Paris Buttfield-Addison, and Tim Nugent—authors of Learning Swift—provide a tour of Swift 3 and its growing ecosystem. You’ll learn about the language’s most impactful and interesting new features, and explore Swift’s use on non-Apple platforms.
Many changes in Swift 3 are subtle refinements that knock the rough corners off the language, making human interactions with Swift much smoother. To help you gain a better understanding of Swift 3, the authors provide a simple program designed for one of Apple’s Swift Playgrounds.
- Get a high-level view of Swift 3’s changes and new features, and learn how this version differs from Swift 2
- Explore the Swift Evolution Process and the full list of accepted proposals—including those not yet implemented
- Dive into Swift 3’s changes to the language’s syntax, standard library features, and other areas
- Examine Swift 3’s use on the server, and use a simple program to learn about Swift’s use on Linux
- Find further resources for learning about, working with, and converting projects to Swift 3
Table of contents
- 1. Introduction
- 2. Understanding Swift 3
-
3. What’s Changed in Swift 3?
-
Using the New Stuff
- The API Guidelines Are Applied to the Swift Standard Library
- The ++ and -- Operators Have Been Removed
- C-style for-loops Have Been Removed
- libdispatch Now Has a Swiftier API
- First Parameters in Functions Now Have Labels
- Foundation Types Are Now Imported as Swift Types
- Objective-C Lightweight Generic Types Are Imported as Swift Generic Types
- Function Parameters Are No Longer Variables, but Constants
- Selectors and Key Paths Are Now Type-Checked
- UpperCamelCase Has Become lowerCamelCase for Enums and Properties
- M_PI is now Float.pi
- Functions Can Be Marked as Having a Discardable Result
- Debugging Identifiers Have Been Made Nicer
- Putting It All Together
- Summary
-
Using the New Stuff
- 4. Swift on the Server, and Swift on Linux
- 5. Conclusion
Product information
- Title: What's New in Swift 3
- Author(s):
- Release date: October 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491966679
You might also like
book
Beginning iPhone Development with Swift 5: Exploring the iOS SDK
Learn how to integrate all the interface elements iOS users have come to know and love, …
book
Swift iOS 24-Hour Trainer
Jump into the app development world with confidence! iOS Swift 24-Hour Trainer combines book and video …
book
Swift for Beginners: Develop and Design
NOTE: This edition is now out of date, and does not conform with the current version …
book
Programming iOS 13
If you’re grounded in the basics of Swift, Xcode, and the Cocoa framework, this book provides …