Opening the iTunes Store.If iTunes doesn’t open, click the iTunes icon in your Dock or on your Windows desktop.Progress Indicator
Opening Apple Books.If Apple Books doesn't open, click the Books app in your Dock.Progress Indicator

iTunes is the world's easiest way to organize and add to your digital media collection.

We are unable to find iTunes on your computer. To download from the iTunes Store, get iTunes now.

Do you already have iTunes? Click I Have iTunes to open it now.

I Have iTunes Free Download

The Swift Programming Language (Swift 4.2)

Swift Programming Series

This book can be downloaded and read in Apple Books on your Mac or iOS device.


Swift is a programming language for creating iOS, macOS, watchOS, and tvOS apps. Swift builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make programming easier, more flexible, and more fun. Swift’s clean slate, backed by the mature and much-loved Cocoa and Cocoa Touch frameworks, is an opportunity to reimagine how software development works.

This book provides:
- A tour of the language.
- A detailed guide delving into each language feature.
- A formal reference for the language.

What's New in Version 4.2

- Updated for Swift 4.2. - Added information about accessing all of an enumeration’s cases to the Iterating over Enumeration Cases section. - Added information about #error and #warning to the Compile-Time Diagnostic Statement section. - Added information about inlining to the Declaration Attributes section under the inlinable and usableFromInline attributes. - Added information about members that are looked up by name at runtime to the Declaration Attributes section under the dynamicMemberLookup attribute. - Added information about the requires_stored_property_inits and warn_unqualified_access attributes to the Declaration Attributes section. - Added information about how to conditionally compile code depending on the Swift compiler version being used to the Conditional Compilation Block section. - Added information about #dsohandle to the Literal Expression section.


screenshot 1
screenshot 2
screenshot 3
screenshot 4
screenshot 5

Customer Reviews


I hate it!

Needs some updates

While its exciting to try out something new, as usual with the wild west that is the tech world, there are some ommisions in this text, namely issues surrounding updates in the language itself. For example with Xcode 6.1 the method/function toRaw() is replaced with .rawValue. When I see gaps like this, or overvcomplicating of explanation (Cisco I’m looking at you) I want to scream

In this digital day and age one would expect book mis a jour for instances of change such as this. (Apple, you can go look up “mis a jour” as a punishment for your wayward ways).

This type of slopiness, makes me worry for companise like Apple, where we see more style than substance… No I am not a troll, more a serious user of technical tools. I see a lot of orphaned children at Apple when it comes to software such as Apperture, possiby Final Cut and Motion, sometime in the future, or Filemaker Pro, which never has its act together when an new OS is released.

Apple, please invest serious time and money (all that lovely double Irish) in serious work on your software so that we can run with it in the years to come.

The Swift Programming Language (Swift 4.2)
View in iTunes
  • Free
  • Available on iPhone, iPad, iPod touch, and Mac.
  • Category: Programming
  • Published: 02 June 2014
  • Publisher: Apple Inc.
  • Print Length: 500 Pages
  • Language: English
  • Series: Swift Programming Series
  • Version: 4.2
  • Requirements: This book can only be viewed on an iOS device with Apple Books on iOS 12 or later, iBooks 1.5 or later and iOS 4.3.3 or later or a Mac with iBooks 1.0 or later and OS X 10.9 or later.

Customer Ratings