Back to topics

Topic

Swift

Core Swift language rules and reasoning patterns that frequently appear in iOS interviews before the discussion narrows into UI or concurrency specifics

Focus areas: Value vs reference semantics, immutability, ownership, optionals, and API design

What is the difference between let and var in Swift?

Explain that `let` creates an immutable binding while `var` creates a mutable one, then separate how that rule behaves for value types versus reference types

What is the difference between print and debugPrint in Swift?

Explain that `print` prefers a user-facing string while `debugPrint` prefers a debug representation, then show when their output is identical and when it diverges