Swift Programming: The Big Nerd Ranch Guide, 3rd edition

Published by Big Nerd Ranch Guides (October 21, 2020) © 2021

  • Matthew Mathias
  • John Gallagher
  • Mikey Ward

In this eTextbook — More ways to learn

  • More flexible. Start learning right away, on any device.
  • More supportive. Get AI explanations and practice questions (select titles).
  • More interactive. Bring learning to life with audio, videos, and diagrams.
  • More memorable. Make concepts stick with highlights, search, notes, and flashcards.
  • More understandable. Translate text into 100+ languages with one tap.

In this eTextbook — More ways to learn

  • More flexible. Start learning right away, on any device.
  • More supportive. Get AI explanations and practice questions (select titles).
  • More interactive. Bring learning to life with audio, videos, and diagrams.
  • More memorable. Make concepts stick with highlights, search, notes, and flashcards.
  • More understandable. Translate text into 100+ languages with one tap.

Table of contents

  • 1. Getting Started
  • 2. Types, Constants, and Variables
  • 3. Conditionals
  • 4. Numbers
  • 5. Switch
  • 6. Loops
  • 7. Strings
  • 8. Arrays
  • 9. Optionals
  • 10. Dictionaries
  • 11. Sets
  • 12. Functions
  • 13. Closures
  • 14. Enumerations
  • 15. Structs and Classes
  • 16. Properties
  • 17. Initialization
  • 18. Value vs. Reference Types
  • 19. Protocols
  • 20. Extensions
  • 21. Generics
  • 22. Protocol Extensions
  • 23. Error Handling
  • 24. Memory Management and ARC
  • 25. Equatable, Comparable, and Hashable
  • 26. Property Wrappers
  • 27. Command-Line Utilities
  • 28. iOS and macOS Apps
  • 29. Conclusion

Author bios

This publication contains markup to enable structural navigation and compatibility with assistive technologies. Images in the publication are fully described. The publication supports text reflow, is screen-reader friendly, and contains no content hazards known to cause adverse physical reactions.

Need help?Get in touch