Master Apple’s new Swift programming language by following the best practices to write efficient and powerful code
If you are a developer that learns best by looking at, and working with, code, then this book is for you. A basic understanding of Apple’s tools is beneficial but not mandatory.
Swift is Apple’s new innovative and user-friendly development language, which is packed with modern features to make programming easier, fun, and flexible.
This book begins by giving you a solid Introduction to the Swift programming language so you can quickly begin developing applications using this interesting language. It also covers advanced topics such as Objective-C interoperability, ARC, closures, and concurrency. Each concept covered is backed up with example code and demonstrates how to properly execute it. Next, you will be taught about all of the advanced features of Swift, and its interaction with Apple’s APIs and libraries. You’ll then learn to interact with REST-based web services using Swift. We will conclude the book by getting equipped to design and build applications using established design patterns.
Chapter 1. Taking the First Steps with Swift
Chapter 2. Learning about Variables, Constants, Strings, and Operators
Chapter 3. Using Collections and Cocoa Data Types
Chapter 4. Control Flow and Functions
Chapter 5. Classes and Structures
Chapter 6. Working with XML and JSON Data
Chapter 7. Custom Subscripting
Chapter 8. Using Optional Type and Optional Chaining
Chapter 9. Working with Generics
Chapter 10. Working with Closures
Chapter 11. Using Mix and Match
Chapter 12. Concurrency and Parallelism in Swift
Chapter 13. Swift Formatting and Style Guide
Chapter 14. Network Development with Swift
Chapter 15. Adopting Design Patterns in Swift