Beginning programming with Swift! This book takes you from beginner to advanced in Swift: Apple’s modern programming language for iOS.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A patient, exercise-driven introduction to Swift 5.3 that assumes no prior coding experience and builds you up to protocol-oriented programming and generics. Best for complete beginners who want a language-first foundation before touching iOS app frameworks.
【Book Arc】
- **Opening (~0%–10%)**: Front matter, licensing, and a "Before You Begin" setup guide covering required hardware (a Mac on macOS Catalina 10.15+) and tooling (Xcode 12+), plus how the book's playground-based, platform-neutral approach works.
- **Early (~10%–35%)**: Section I, Swift Basics — starts from how a CPU, RAM, registers, and binary numbers actually work, then moves into playgrounds, comments, arithmetic, constants and variables, and the core data types including optionals.
- **Middle (~35%–55%)**: Section II, Collection Types — storing and manipulating groups of data, framed around the idea that collections are a core component of any app (friend lists, game characters, and so on).
- **Late (~55%–80%)**: Section III, Building Your Own Types — modeling your own parts of an app with classes, enumerations, and related constructs, since Swift's built-ins know nothing about your domain.
- **Ending (~80%–100%)**: Section IV, Advanced Topics — error handling, memory management, protocol extensions, custom operators, protocol-oriented programming, and generics, i.e. Swift's behind-the-scenes mechanisms.
【Key Takeaways】
- **Swift is deliberately beginner-friendly** (Early): the book argues Xcode's playground sandbox lets you execute statements directly without building a whole app first, which is why a beginner can start here rather than with a framework book.
- **Fundamentals come before frameworks** (Early): the authors explicitly recommend *SwiftUI by Tutorials* for readers who want to jump straight into app building, and note that SwiftUI syntax like `@State`, `@ObservedObject`, opaque return types, and result builders is either advanced or out of scope here.
- **The book is platform-neutral by design** (Early): all code runs in playgrounds and isn't tied to iOS, macOS, tvOS, or watchOS — so what you learn transfers to server-side Swift on non-Apple platforms too.
- **It starts below the language** (Middle): before any Swift syntax, the text explains CPUs, registers, RAM, instructions, and base-2/binary representation, including bits, bytes, nibbles, and 32- vs 64-bit registers.
- **Practice is built into the structure** (Early): mini-exercises appear throughout chapters and challenges close each chapter, and the authors state you get the most out of the book by actually doing them.
- **Four-section progression** (Early–Ending): Basics → Collection Types → Building Your Own Types → Advanced Topics, moving from data handling to custom modeling to memory and generics.
- **Advanced abstractions are the payoff** (Ending): protocol extensions, custom operators, protocol-oriented programming, and generics are positioned as the tools for creating "beautiful abstractions" to solve real-world problems.
- **It doubles as a reference** (Early): the authors suggest reading in order the first time, then returning to individual chapters to refresh specific topics.
【Reading Tips】
- **Read Section I in order, even if it feels basic.** The binary/CPU material is groundwork the later type system and memory chapters quietly depend on.
- **Do the mini-exercises and chapter challenges.** They're the book's main feedback loop; skipping them turns an active tutorial into passive reading.
- **Type code into your own playground rather than reading listings.** The book is designed around immediate execution and experimentation.
- **Skim the front matter and licensing.** Setup requirements (Mac, Catalina, Xcode 12) matter; the legal notices don't.
- **Treat the final section as the deep-read.** Error handling, memory management, and generics are where the real conceptual difficulty lives.
【Coverage Limits】
The excerpts cover front matter, setup, the four-section overview, and the opening of Section I through binary number representation; they do not detail individual chapters in Sections II–IV, so specifics of collections, custom types, and advanced topics are described only at the section level.
Excerpt 1
y loved ones: Moriah, Lia and Ari.” — Eli Ganim “For MawMaw. A talented cook, a loving smooch, a worthy opponent in chicken foot; a home weaver. Her blessing...
, for example — these are things you need to build yourself! You’ll learn how to do that in this section. Section IV: Advanced Topics The final section of th...
uters work, and then, how Swift’s playgrounds feature works. With those logistics out of the way, you’ll take a tour of the fundamentals of the Swift languag...
y _ computer and http://hackaday.com/tag/ternary-computer/ . Here’s a representation of the base 2 number 1101: In the base 10 number system, the place value...
d Chapter1 . Click Create to create and save the playground. Xcode then presents you with the playground, like so: Even blank playgrounds don’t start empty b...
l operations, just less common ones. Let’s turn to them now. The first of these is the remainder operation, also called the modulo operation. In division, th...
be like so: var integer: Int = 100 var decimal: Double = 12.5 integer = decimal Swift will complain if you try to do this and spit out an error on the third...
ge, can be reduced to raw numbers. Strings are no different! That may sound very strange. How can characters be numbers? At its base, a computer needs to tra...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Swift Apprentice - Sixth Edition - for Xcode 12 Swift 5.3 (Ehab Amer, Alexis Gallagher, Matt Galloway etc.)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Swift Apprentice - Sixth Edition - for Xcode 12 Swift 5.3 (Ehab Amer, Alexis Gallagher, Matt Galloway etc.)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Swift Apprentice - Sixth Edition - for Xcode 12 Swift 5.3 (Ehab Amer, Alexis Gallagher, Matt Galloway etc.)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
这本书是面向初学者的 Swift 编程入门教程,目标是把读者从零基础带到能够理解并运用 Swift 这门苹果现代编程语言的较高级水平。全书围绕 Swift 语言本身展开,配合 Xcode 12 与 Swift 5.3 的环境,从最基础的概念讲起,逐步深入到更复杂的主题。书的结构按难度递进,开篇部分介绍编程与 Swift 的基本面貌,让读者先建立对“写代码”这件事的整体认识;随后进入语言的基础要素,比如变量、运算与常见表达式。摘录中提到,Swift 提供了丰富的数学函数,连三角函数这类内容也能在需要时派上用场,说明书中对语言内置能力的介绍是具体而实用的。
书中还谈到字符串的本质:在计算机底层,字符最终要被翻译成数字来处理,这类讲解帮助读者理解数据在程序中的存在方式。在工具使用上,书里以 playground 为例引导读者上手,指出即便是空白的 playground 也并非完全空白,而是带有一些起步用的基础代码,读者不必为此担心。随着内容推进,书中会涉及那些需要读者自己动手搭建的东西,例如某些常见功能并非语言直接提供,而是要在这一部分学会自行实现。最后一部分转向 Swift 的高级主题,把前面打下的基础...
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment