Swift Fundamentals
Since Apple announced the Swift programming language back in 2014 at the Worldwide Developer Conference (WWDC), it has gone on to become one of the fastest-growing programming languages.
Swift is a modern, general-purpose programming language that focuses on type safety and expressive and concise syntax. Positioned as a modern replacement for Objective-C, it has taken over from Apple’s older language as the future of development across all their platforms.
Since open-sourcing Swift, Apple has provided support for running your Swift code on a whole host of platforms including Linux. Despite these alternative ways to use and write Swift code, the simplest is still on a Mac using Apple’s Xcode.
In this chapter, we will look at the fundamentals of the Swift language and examine the syntax and functionality of the basic Swift component.
In this chapter, we will cover the following recipes:
- Writing your first code in Swift
- Using the...