in Simple Words
Swift in Simple Words
Learn the language of iPhone apps, even if you have never written code
- Author
- Aleksei Bulatnikov
- Language
- English
- Format
- EPUB
- Length
- 17 chapters · 5 appendices · ~200 code samples
€14.99
About this book
Swift is the language behind every iPhone app, and most books about it assume you already program. This one does not. Swift in Simple Words starts at a blank line and explains every word the first time it appears.
You learn by building Pocket, a pocket-money tracker that grows one idea per chapter: values, decisions, loops, lists, functions, optionals, structs, enums, closures and errors, all typed and seen running. The last chapter puts the same data on a real SwiftUI screen, so you see where it all leads.
Every one of the roughly two hundred code samples was compiled with Swift 6.4 under Xcode 27 before this book was published. The companion title, Xcode 27 in Simple Words, covers the tool; this book covers the language. Neither requires the other.
What you will learn
- What code is and where to type your first line on a Mac or an iPad
- Values and names, numbers and text
- Making decisions and repeating work
- Lists and lookups: arrays, dictionaries and sets
- Functions that take and return values
- Maybe-values: optionals explained once and for all
- Structs, enums, and a first look at classes, protocols and extensions
- Closures and what to do when things go wrong
- Pocket, the whole program, assembled from everything you learned
- Your first SwiftUI screen, and what to read next
For Swift 6.4 and Xcode 27. Works on any Mac that runs Xcode 27; most chapters also work in the Swift Playground app on iPad. No previous programming experience is needed.