CheatsheetKit

Language Pack · Mid

Swift Developer Pack

Value semantics, optionals, concurrency and iOS Swift interview questions.

Swift: value types, optionals, protocol-oriented programming and modern concurrency.

Questions
360
Topics
20
Pages
357

Get the Swift Developer Pack — $9 One-off. Delivered as a PDF by email the moment payment clears.

Prices shown are a USD base. Your local-market price is calculated at checkout in your own currency, plus any local sales tax.

What is inside

20 chapters, in the order the interviews tend to ask them:

  1. Optionals, nil and the ways out of an optional
  2. Value semantics, reference semantics and copy-on-write
  3. Structs, enums with payloads and pattern matching
  4. Protocols, associated types and existentials
  5. Generics, constraints and type erasure
  6. Closures, capture semantics and escaping
  7. Implicitly unwrapped optionals and their hazards
  8. Collections, sequences and lazy pipelines
  9. throws, Result and typed throws
  10. Structured concurrency, async, await and actors
  11. Task groups, scopes and structured cancellation
  12. SwiftUI state, view identity and rendering
  13. Combine publishers and async sequences
  14. UIKit and SwiftUI interop and migration
  15. The Swift Package Manager and module boundaries
  16. Foundation, Codable, dates and the platform layer
  17. Automatic reference counting, retain cycles and ownership
  18. XCTest, Swift Testing and testable design
  19. Performance, measurement and Instruments
  20. Tooling, formatting, linting and build configuration

How the answers are built

Each chapter opens with the checklist the question is really testing. A few from this pack:

Questions this pack covers

  1. At runtime, what does the Optional type actually contain?
  2. When is nil a legitimate value for a model property?
  3. When does assigning a struct actually copy its storage?
  4. What does the identity operator compare that Equatable does not?
  5. What does an enum with associated values give you that a class hierarchy cannot?
  6. When does a recursive enum need the indirect keyword?
  7. What is a witness table and when does the compiler build one?
  8. When should you reach for some and when for any?

Each one is answered in full in the pack, with the reasoning written out rather than a bullet list.

Related packs

About this pack

How many questions?
360, spread across 20 topics, written out in full across 357 pages.
Do the answers just list keywords?
No. Each answer is written as prose, because that is what you have to reproduce when someone asks you the question.
How do I get it?
Pay once and the PDF arrives by email immediately, with a signed download link.
Can I get it refunded?
Yes, if it is not what you expected. See the refund policy.