Mastering Swift 5
eBook - ePub

Mastering Swift 5

Deep dive into the latest edition of the Swift programming language, 5th Edition

  1. 370 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering Swift 5

Deep dive into the latest edition of the Swift programming language, 5th Edition

About this book

Harness the power of the latest edition with this in-depth and comprehensive guide to the Swift language

Key Features

  • Fifth edition of this bestselling book, improved and updated to cover the latest version of the Swift 5 programming language
  • Get to grips with popular and 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, the Mastering Swift book has established itself amongst developers as a popular choice as an in-depth and practical guide to the Swift programming language. The latest edition is fully updated and revised to cover the new version: Swift 5.

Inside this book, you'll find 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 definitive guide will help you develop your expertise and mastery of the Swift language.

Mastering Swift 5, Fifth Edition will give you an in-depth knowledge of some of the most sophisticated elements in Swift development, including protocol extensions, error handling, and closures. It will guide you on how to use and apply them in your own projects.

Later, you'll see how to leverage the power of protocol-oriented programming to write flexible and easier-to-manage code. You will also see how to add the copy-on-write feature to your custom value types and how to avoid memory management issues caused by strong reference cycles.

What you will learn

  • Understand core Swift components, including 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
  • Implement copy-on-write for you 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 newest version of Swift. If you are a developer and learn best by looking at and working with code, then this book is for you. A basic understanding of Apple's tools would be beneficial but not mandatory. All examples should work on the Linux platform as well.

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2019
Edition
5
eBook ISBN
9781789132731

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. About Packt
  4. Contributors
  5. Preface
  6. Taking the First Steps with Swift
  7. Learning about Variables, Constants, Strings, and Operators
  8. Optional Types
  9. Using Swift Collections
  10. Control Flow
  11. Functions
  12. Classes, Structures, and Protocols
  13. Using Protocols and Protocol Extensions
  14. Protocol Oriented Design
  15. Generics
  16. Availability and Error Handling
  17. Custom Subscripting
  18. Working with Closures
  19. Concurrency and Parallelism in Swift
  20. Custom Types
  21. Memory Management
  22. Swift Formatting and Style Guider
  23. Adopting Design Patterns in Swift
  24. Other Books You May Enjoy

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Mastering Swift 5 by Jon Hoffman in PDF and/or ePUB format, as well as other popular books in Computer Science & Operating Systems. We have over 1.5 million books available in our catalogue for you to explore.