Preface
- What is unique about this book?
- Who should read this book
- How to read this book
- Send me feedback
1.Introduction
- 1.1Xcode
- 1.2Swift Playgrounds in Xcode
- 1.3Swift Projects in Xcode
- 1.4Swift Tutorials
- 1.5Rhythm for working on the exercises
- 1.6Common Errors
- 1.7Interactive Swift
- 1.8Swift evolves
2.Printing Shapes
- 2.1Print out Triangle
- Working out the solution on your computer
- 2.2Print out a half diamond
- 2.3Print out diamond shape
- 2.4Print big diamond, name your size
- 2.5Exercises
3.Quiz Time
- 3.1Simple Add Calculator
- 3.2Addition Quiz
- 3.3Subtraction Quiz
- 3.4Number Guessing Game
- 3.5Exercises
4.Array and Dictionary
- 4.1Sort Children Names
- 4.2Get the character from given alphabetical position
- 4.3Calculate Average
- 4.4What makes 100% in life?
- 4.5Exercises
5.Useful Utility Programs
- 5.1Fahrenheit to Celsius Converter
- 5.2Personal Income Tax Calculator
- 5.3Word count
- 5.4Generate Lotto Numbers
- 5.5Number sorting
- 5.6Exercises
6.Fun Math
- 6.1Finding Divisors
- 6.2Finding the Highest Common Factor
- 6.3Finding the Least Common Multiple (LCM)
- 6.4Finding Prime Numbers
- 6.5Fibonacci sequence
- 6.6Consecutive Sums
- 6.7Exercises
7.Functions
- 7.1Finding the Highest Common Factor (using function)
- Refactoring
- 7.2Generate Lotto Numbers (using a function)
- 7.3Finding the LCM for multiple numbers (using function)
8.File and Network
- 8.1Calculate average score
- 8.2Count words and lines in a text file
- 8.3Mail merge birthday invitation cards
- 8.4Rename files
- 8.5Currency exchange with live quoting
- 8.6Exercises
9.Object Oriented Programming
- 9.1Calculator (Class)
- 9.2Age of Teacher and Students
- 9.3Calculate Sales Tax
- 9.4Library System
- 9.5Sunflower vs Zombies Game Simulation
- 9.6Exercises
10.Classic Puzzles
- 10.1Google Labs Aptitude Test
- 10.2Fibonacci and HCF (Recursion)
- 10.3Calculate Compound Interest
- 10.4Farmer Crosses River Puzzle
- 10.5Cryptic Math Equation (Backtracking)
- 10.6More Puzzle Exercises
11.Mac OS X App - iSpeak
- 11.1Create Xcode Cocoa Project
- 11.2Design UI in XIB
- 11.3Connect button action
- 11.4Connect text field outlet
- 11.5Add code to speak the text
- 11.6Run the app
- 11.7Distribute the app
12.Build iOS App - iCurrency
- 12.1Design
- 12.2Create Xcode iOS project
- 12.3Xcode Storyboards and Interface Builder
- 12.4Link UI to Controller
- 12.5Add Code Logic
- 12.6Convert currencies
- 12.7Add Image Assets
- 12.8Add app icon
- 12.9Optimize
- 12.10Distribute to your iPhone
Appendix 1 Swift in Nutshell
Appendix 2 Solutions
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
Resources
- Online resources
- Books
- Software