Book description
Swift in Depth guides you concept by concept through the skills you need to build professional software for Apple platforms, such as iOS and Mac; also on the server with Linux. By following the numerous concrete examples, enlightening explanations, and engaging exercises, you’ll finally grok powerful techniques like generics, efficient error handling, protocol-oriented programming, and advanced Swift patterns. Author Tjeerd in ’t Veen reveals the high-value, difficult-to-discover Swift techniques he’s learned through his own hard-won experience.
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgements
- About this Book
- Chapter 1. Introducing Swift in depth
- Chapter 2. Modeling data with enums
- Chapter 3. Writing cleaner properties
-
Chapter 4. Making optionals second nature
- 4.1. The purpose of optionals
- 4.2. Clean optional unwrapping
- 4.3. Variable shadowing
- 4.4. When optionals are prohibited
- 4.5. Returning optional strings
- 4.6. Granular control over optionals
- 4.7. Falling back when an optional is nil
- 4.8. Simplifying optional enums
- 4.9. Chaining optionals
- 4.10. Constraining optional Booleans
- 4.11. Force unwrapping guidelines
- 4.12. Taming implicitly unwrapped optionals
- 4.13. Closing thoughts
- Summary
- Answers
- Chapter 5. Demystifying initializers
- Chapter 6. Effortless error handling
- Chapter 7. Generics
- Chapter 8. Putting the pro in protocol-oriented programming
- Chapter 9. Iterators, sequences, and collections
- Chapter 10. Understanding map, flatMap, and compactMap
- Chapter 11. Asynchronous error handling with Result
-
Chapter 12. Protocol extensions
- 12.1. Class inheritance vs. Protocol inheritance
- 12.2. Protocol inheritance vs. Protocol composition
- 12.3. Overriding priorities
- 12.4. Extending in two directions
- 12.5. Extending with associated types
- 12.6. Extending with concrete constraints
- 12.7. Extending Sequence
- 12.8. Closing thoughts
- Summary
- Answers
- Chapter 13. Swift patterns
- Chapter 14. Delivering quality Swift code
- Chapter 15. Where to Swift from here
- Index
- List of Figures
- List of Listings
Product information
- Title: Swift in Depth
- Author(s):
- Release date: December 2018
- Publisher(s): Manning Publications
- ISBN: 9781617295188
You might also like
audiobook
Fall in Love with the Problem, Not the Solution
Unicorns-companies that reach a valuation of more than $1 billion-are rare. Uri Levine has built two. …
book
Learning Google Analytics
Why is Google Analytics 4 the most modern data model available for digital marketing analytics? Rather …
book
Deciphering Data Architectures
Data fabric, data lakehouse, and data mesh have recently appeared as viable alternatives to the modern …
video
React - The Complete Guide (Includes Hooks, React Router, and Redux) - Second Edition
**This course is now updated for the latest version of React—React 18** React.js is the most …