Swift (iOS/macOS) Interview: 200 Questions and Answers
Swift (iOS/macOS) Interview: 200 Questions and Answers
Summary:
The book "Swift (iOS/macOS) Interview: 200 Questions and Answers" is a practical guide for developers who want to confidently pass technical interviews at top IT companies. The author has collected the most frequent and complex questions asked at interviews for Junior and Middle iOS developer positions and provided detailed, structured answers with code examples.
What is this book about?
- Swift language basics: optionals, closures, protocols, generics, memory management (ARC, retain cycles).
- iOS/macOS development: UIKit, SwiftUI, application lifecycle, networking (URLSession, Alamofire), Core Data, UserDefaults.
- Multithreading and asynchrony: GCD, OperationQueue, async/await, handling race conditions, deadlocks.
- Architectural patterns: MVC, MVVM, VIPER, Coordinator, DI (Dependency Injection).
- Testing and debugging: Unit tests, UI tests, TDD, memory profiling, Xcode tools.
- Real-world cases: questions from interviews at Yandex, Tinkoff, Avito, Wildberries, and other companies.
Who is this book for?
- Junior developers — systematize their knowledge and learn what is asked for a first job.
- Middle developers — fill gaps in theory and prepare for promotion.
- Team leads and HR — can use the questions to create their own checklist.
What will you learn after reading?
- How to answer questions about ARC, weak/unowned references, and avoid memory leaks.
- The difference between value types and reference types, and when to use which.
- How to properly structure an application architecture so it scales.
- Which algorithms and data structures are most often asked at iOS interviews.
- How to prepare a portfolio and present your projects in 5 minutes.
Each question is accompanied by a detailed comment, and at the end of the book there is a checklist "What to review the day before the interview." The format allows you to use the book as a cheat sheet: open the desired topic — get a ready answer.
The book will be useful not only for beginners but also for experienced developers who want to refresh their knowledge before an interview. All code examples are relevant for Swift 5.9+ and Xcode 15.