Senior iOS interview questions: judgement, risk and recovery
By Mike Salari. Staff mobile engineer · 500+ technical interviews from the hiring side.
This page is for iOS engineers interviewing at senior level. The ten questions below test judgement: new language options, security calls, production problems with no crash log, and what you do when the interviewer changes the requirement halfway through. For each one you get what is scored, a strong answer, a follow-up chain, and the weak answer.
Who this is for
Senior iOS engineers, and mid-level engineers going for their first senior title. For language questions, read Swift interview questions. For state, identity and stale search results in SwiftUI, read SwiftUI interview questions. This page covers what neither of those does.
At senior level, the interviewer is answering one question for their team: would I want this person in the room when something is on fire? Every question below is a proxy for that.
Twelve senior iOS questions, each with a weak and a senior answer and the follow-up, are in the senior iOS guide on Mobile Interview Room.
The questions
1. "Swift 6.2 can isolate a module to the main actor by default. Would you turn it on?"
What is scored: weighing a new language option against your codebase.
A strong answer covers:
- Context: most app and UI code already runs on the main actor, so annotating it by hand is noise.
- Decision: try it on one UI target first and compare warnings and behaviour.
- Alternative: keep library and data modules nonisolated, where concurrency is the point.
- Failure mode: heavy work, such as decoding a large payload, now runs on the main thread because nobody marked it. Swift 6.2 added
@concurrentfor exactly that work. - Evidence: a hitch you measured before and after.
struct FeedDecoder {
@concurrent
static func decode(_ data: Data) async throws -> [Post] {
try JSONDecoder().decode([Post].self, from: data)
}
}Follow-ups:
- Now a shared library module depends on this target. What changes for it?
- How would you find work that moved to the main thread by accident?
Weak answer: "Yes, it removes the concurrency errors." It hides where the work now runs.
2. "Your app logs users in with OAuth. Walk me through the flow."
What is scored: security thinking for a public client.
A strong answer covers:
- A mobile app is a public client: it cannot keep a secret.
- Authorisation code flow with PKCE. RFC 8252 says public native app clients must implement PKCE.
- Use an external user agent, such as the system browser session, not an embedded web view. RFC 8252 says native apps must not use embedded user agents for authorisation requests.
- Tokens go to the Keychain. Refresh follows a single shared refresh, never one per failed request.
- Failure mode: the redirect URI is not registered tightly, so another app can catch it.
Follow-ups:
- Product wants login inside the app with no browser sheet. What do you say?
- The refresh token is stolen. What limits the damage?
Weak answer: "We don't need PKCE, we're a native app." The Senior iOS Interview Playbook calls this a dangerous misconception, and the RFC agrees.
3. "Should we pin certificates?"
What is scored: a threat model and an operational plan for rotation.
A strong answer covers:
- Clarify the threat: a compromised or rogue certificate authority, on a high-value app such as payments.
- Prefer pinning the public key over the whole certificate. Keys change less often.
- The real risk is self-inflicted: a rotation the app does not know about bricks every installed version.
- Plan: backup pins, a rotation schedule agreed with the backend team, and monitoring of pin failures as non-fatal errors.
Follow-ups:
- The certificate rotates next month and half your users never update. Now what?
- Security asks for pinning on an internal tool. Same answer?
Weak answer: "Hardcode the server certificate in the app." It works until the certificate expires, then the app stops talking to its own server.
4. "Memory climbs until the app dies, and there is no crash log. What is it?"
What is scored: knowing an out-of-memory termination looks different from a crash.
A strong answer covers:
- An OOM termination often leaves no normal crash report, so the crash reporter shows nothing.
- MetricKit reports exit counts by reason.
MXForegroundExitData.cumulativeMemoryResourceLimitExitCountcounts the times the system terminated the app in the foreground for using too much memory. - Then decide the cause, because the fix differs: a leak, an unbounded cache, or large decoded images.
- For a leak: mark a generation in Allocations, open and close the screen, mark again, and read what survived. The Memory Graph Debugger shows the chain.
- Fix and prove it: a test that asserts the object deallocates.
Follow-ups:
- Now the count rises only on older devices. What does that tell you?
- Now it happens in the background. Where do you look?
Weak answer: "I'd check the crash reporter." There is nothing there, and the interviewer knows it.
5. "The user taps Pay twice on a bad network. How many charges?"
What is scored: correctness where money moves.
A strong answer covers:
- The client cannot know whether a timed-out request reached the server.
- An idempotency key generated once per payment attempt, stored, and sent again on every retry. The server returns the first result for a repeated key.
- The button disables on tap, but that is UX. The key is the guarantee.
- No optimistic "Paid" state until the server confirms.
var request = URLRequest(url: paymentsURL)
request.httpMethod = "POST"
// Same key on every retry of this attempt, persisted with the pending payment
request.setValue(attempt.id.uuidString, forHTTPHeaderField: "Idempotency-Key")Follow-ups:
- The app is killed after the request is sent. What happens on next launch?
- The backend does not support idempotency keys yet. What do you push for?
Weak answer: "I disable the button." It stops double taps, not retries after a timeout.
6. "Make this custom rating control work with VoiceOver."
What is scored: accessibility as part of how you build.
A strong answer covers:
- One accessibility element with a label, a value and the adjustable behaviour, instead of five unlabeled stars.
- Swipe up and down to change the value, through an adjustable action.
- Dynamic Type: the layout wraps or stacks at the largest sizes.
- Test with VoiceOver on a device, not only in previews.
RatingView(value: rating)
.accessibilityElement(children: .ignore)
.accessibilityLabel("Rating")
.accessibilityValue("\(rating) of 5")
.accessibilityAdjustableAction { direction in
switch direction {
case .increment: rating = min(rating + 1, 5)
case .decrement: rating = max(rating - 1, 0)
@unknown default: break
}
}Follow-ups:
- Design says the large-text layout looks wrong. What do you do?
- How do you stop this regressing next release?
Weak answer: "We add labels at the end." Late fixes miss layout problems and cost more.
7. "Halfway through your design, I change a requirement. The feed must now work offline."
What is scored: whether your design absorbs change without drama.
A strong answer covers:
- Say what survives, what changes, and which assumption broke.
- The local model stays. The sync policy changes: a pending-operation queue, optimistic updates marked in the UI.
- Server operations become idempotent so retries do not duplicate work.
- Name the new risk: conflicts, and who decides how they resolve.
Follow-ups:
- Now the user is offline for a week. What is in the queue, and how big can it get?
- Now two devices edit the same item. Who decides the rule?
Weak answer: "OK, then I'll rewrite the networking layer." Restarting from zero shows the design was not built to change.
8. "Would you use The Composable Architecture for this settings screen?"
What is scored: matching architecture to the problem and the team.
A strong answer covers:
- Clarify: how big is the team, how complex is the state, what does the rest of the app use?
- A settings screen with a few toggles needs a small view and a small model.
- Name what a heavy pattern would cost: onboarding, build time, a second way of doing things.
- Say what would change your mind: shared complex state, many side effects, or a team already fluent in it.
Follow-ups:
- Now the app already uses it everywhere. Does consistency win?
- Now the settings screen grows sync, account linking and feature flags. When do you change shape?
Weak answer: "Yes, it scales." Every architecture claims to scale. The Playbook names this the "everything is an architecture problem" trap.
9. "What does an actor hop cost in your hot path?"
What is scored: saying "I do not know" well.
A strong answer covers:
- If you have not measured it, say so. Do not invent a number.
- Then give the method: reproduce, profile a Release build on a real device, find the dominant cost, change one thing, measure again.
- Name what you would look for in the trace: hops per frame, time waiting on the actor, main thread blocking.
- Say what result would change your design.
Follow-ups:
- The trace shows thousands of hops per scroll. What do you change?
- You only have a Debug build on a simulator today. What can you trust from it?
Weak answer: a confident number with no measurement behind it. One bluff makes every later answer suspect.
10. "This feature is big and vague. How do you break it down and estimate it?"
What is scored: turning ambiguity into a plan you can defend.
A strong answer covers:
- The smallest version a user would value, and the risk you are choosing not to solve yet.
- Spike the unknowns first: a new SDK, a migration, an API that does not exist yet.
- Slice by user value, not by layer, so something ships early behind a flag.
- A range with named assumptions, updated when an assumption breaks.
Follow-ups:
- Your estimate was off by half. When did you tell people, and how?
- Now there are three engineers instead of one. How do you split it?
Weak answer: a single number with no assumptions. When the first assumption breaks, there is nothing to update, only a missed date to explain.
What changed in 2024 to 2026
- Swift 6 (17 September 2024) introduced an opt-in language mode that turns possible data races into compiler errors. Senior candidates are expected to have a view on adopting it. (Swift.org)
- Swift 6.2 (15 September 2025) added an option to isolate code to the main actor by default, the
@concurrentattribute, and an upcoming feature that runs nonisolated async functions in the caller's context. (Swift.org) - Swift Testing can run side by side with XCTest, so a test suite can move gradually. (Apple Developer)
How the rounds run
There is no single senior iOS loop. Some lean on general coding, others have a platform round, mobile system design and a project deep dive. The questions on this page tend to come up in design, deep dive and behavioural rounds. StaffEng's guide says it is always reasonable to ask the recruiting team for details about the process, starting with the formats and what each evaluates. That applies at senior level too. For story-based questions, read iOS behavioural interview questions.
Sources
- Announcing Swift 6, Swift.org, 17 September 2024
- Swift 6.2 Released, Swift.org, 15 September 2025
- RFC 8252: OAuth 2.0 for Native Apps, IETF, October 2017, accessed 21 October 2026
- MXForegroundExitData, Apple Developer, accessed 21 October 2026
- accessibilityAdjustableAction(_:), Apple Developer, accessed 21 October 2026
- Swift Testing, Apple Developer, accessed 21 October 2026
- Interviewing for Staff-plus roles, StaffEng, accessed 21 October 2026