Chapter 2. Introduction to Swift playgrounds
Listing 2.1. Convert Int to a Double
Listing 2.2. How many pizza slices per person?
Listing 2.5. Using dictionaries
Listing 2.6. if, else, and while statements
Listing 2.7. for-in loop with range
Listing 2.10. Modify external parameter name
Listing 2.11. Omit external parameter name
Listing 2.12. Default parameter name
Listing 2.14. Multiple optional binding
Listing 2.15. The guard statement
Listing 2.16. The guard let statement
Listing 2.17. Merge guard statements
Listing 2.18. The ternary conditional operator
Listing 2.19. The nil coalescing operator
Chapter 3. Swift objects
Listing 3.1. Overloading a function with different parameter names
Listing 3.2. Overloading a function with different parameter data types
Listing 3.3. Class inheritance
Listing 3.6. Extending a protocol
Chapter 4. View controllers, views, and outlets
Chapter 5. User interaction
Chapter 6. Adaptive layout
Listing 6.1. Create Visual Format Language constraints
Listing 6.2. Reposition/Resize views when view size transitions
Listing 6.3. viewWillTransition method structure
Chapter 7. More adaptive layout
Listing 7.1. Landscape constraints
Listing 7.2. Instantiate stack view
Chapter 10. Collections, searching, sorting, and tab bars
Chapter 11. Local data persistence
Listing 11.1. Delete and update book
Chapter 12. Data persistence in iCloud
Chapter 13. Graphics and media
Listing 13.1. Add border and shadow to view layer
Listing 13.2. Add inspectable layer property in UIView extension