Get up to speed with Swift features and concepts with this comprehensive guide to the Swift language
Key Features
Cover the latest version of the Swift programming language with the fifth edition of this bestselling book
Get to grips with modern design techniques to write easy-to-manage Swift code
Learn how to use core Swift features such as concurrency, generics, and copy-on-write in your code
Book Description
Over the years, Mastering Swift has established itself among developers as a popular choice as an in-depth and practical guide to the Swift programming language. This latest edition is fully updated and revised to cover the new version - Swift 5. With this book, you'll explore the key features of Swift 5, easily explained with complete sets of examples. From the basics of the language to popular features such as concurrency, generics, and memory management, this in-depth guide will help you develop your expertise and mastery in the language.
As you progress, you'll gain practical insights into some of the most sophisticated elements in Swift development, including protocol extensions, error handling, and closures. The book will also show you how to use and apply them in your own projects. In later chapters, you'll understand how to leverage the power of protocol-oriented programming to write flexible and easier-to-manage code. Finally, you'll learn how to add the copy-on-write feature to your custom value types, along with understanding how to avoid memory management issues caused by strong reference cycles.
By the end of this book, you will have mastered the Swift 5 language and developed the skills you need to effectively use its features to build robust applications.
What you will learn
Understand core Swift components, such as operators, collections, control flows, and functions
Learn how and when to use classes, structures, and enumerations
Understand how to use protocol-oriented design with extensions to write easier-to-manage code
Use design patterns with Swift to solve commonly occurring design problems
Apply copy-on-write for your custom value types to improve performance
Add concurrency to your applications using Grand Central Dispatch and Operation Queues
Implement generics to write flexible and reusable code
Who this book is for
This book is for developers who want to delve into the latest version of Swift. If you are a developer looking to learn in a practical way by working with code, then this book is for you. A basic understanding of Apple's tools will be beneficial but not mandatory. All examples should work on the Linux platform as well.
Table of Contents
Taking the First Steps with Swift
Learning about Variables, Constants, Strings and Operators
Optional Types
Using Swift Collections
Control Flow
Functions
Classes, Structures, and Protocols
Using Protocols and Protocol Extensions
Protocol Oriented Design
Generics
Availability and Error Handling
Custom Subscripting
Working with Closures
Concurrency and Parallelism in Swift
Custom Types
Memory Management
Swift Formatting and Style Guider
Adopting Design Patterns in Swift
Mastering Swift 5: Deep dive into the latest edition of the Swift programming language, 5th Edition (English Edition) EPUB, PDF, MOBI, AZW3, TXT, FB2, DjVu, Kindle电子书免费下载。