iosNudge

1 month

1 Month Plan

This plan is for you if you have about a month before your interviews. Each week covers one big area, with quiz questions, coding practice and design. At the end you will be ready for most iOS interview rounds.

4 parts91 items 17h 25m in total2–3 hours a day
0/91 completed0%

Week 1 — Swift language and memory

0/23 done
  • How to plan your preparation for 1 week, 1 month or 3 months, and what to practise each week.

    GuideEasy7 mins
  • Structs are value types and get copied. Classes are reference types and are shared.

    QuizEasy3 mins
  • Value semantics means each copy is independent; copy-on-write makes copies cheap by sharing storage until someone mutates it.

    QuizMedium3 mins
  • An optional either holds a value or nil; unwrap it with if let, guard let, ?? or optional chaining instead of force unwrapping.

    QuizEasy2 mins
  • Associated values let each enum case carry its own extra data, which is great for modeling states where only valid combinations are possible.

    QuizEasy2 mins
  • An escaping closure can be called after the function that received it returns, so it must be marked @escaping and you must think about what it captures.

    QuizEasy2 mins
  • A capture list, like [weak self] or [count], controls how a closure captures values, either by making references weak or by copying a value at creation time.

    QuizMedium3 mins
  • Functions mark failure with throws, callers handle it with do/catch, try? or try!, and Swift 6 adds typed throws for a fixed error type.

    QuizEasy2 mins
  • A property wrapper is a type that wraps the get and set logic of a property so you can reuse it with an @Attribute, like @State or @Published.

    QuizMedium2 mins
  • Protocol-oriented programming means building behavior from small protocols with default implementations, instead of deep class inheritance.

    QuizMedium2 mins
  • some is an opaque type that stands for one specific concrete type the compiler knows; any is a box that can hold any conforming type at run time.

    QuizMedium3 mins
  • Generics let you write one function or type that works with many types, and constraints limit those types to ones that have the abilities you need.

    QuizMedium2 mins
  • Swift uses static dispatch when it knows the exact method, table dispatch for class overrides and protocol requirements, and message dispatch for @objc dynamic.

    QuizHard3 mins
  • Equatable gives ==, Hashable lets a type be a Set element or Dictionary key, and Comparable gives <; Swift writes them for you when all stored properties already conform.

    QuizEasy2 mins
  • ARC counts strong references to each class instance and frees the instance as soon as the count reaches zero, with retain and release calls inserted by the compiler.

    QuizMedium3 mins
  • A strong reference keeps an object alive, a weak reference does not and becomes nil when the object dies, and an unowned reference does not and crashes if used after the object dies.

    QuizEasy3 mins
  • A retain cycle happens when objects hold strong references to each other so their counts never reach zero; you break it by making one link weak or unowned.

    QuizMedium2 mins
  • Check that deinit runs, use Xcode's Memory Graph Debugger to see who holds an object, use the Leaks and Allocations instruments, and add tests that assert objects are freed.

    QuizMedium3 mins
  • Find the two numbers in an array that add up to a target, in one pass.

    Swift codingEasy15 mins7 tests
  • Check that every bracket in a string is closed by the same type, in the right order.

    Swift codingEasy15 mins9 tests
  • Group words made of the same letters by using a dictionary with a smart key.

    Swift codingMedium20 mins9 tests
  • Write a @Clamped property wrapper that keeps a value inside a range, like a volume from 0 to 100.

    Swift codingEasy15 mins9 tests
  • Build a generic cache that drops the least recently used item when it is full. Every operation must be O(1).

    Swift codingMedium30 mins10 tests

Week 2 — Concurrency and algorithms

0/23 done
  • GCD is a lightweight C-based API for running closures on queues, while OperationQueue is a higher-level Objective-C API built on GCD that adds dependencies, cancellation and concurrency limits.

    QuizMedium2 mins
  • A serial queue runs one task at a time in order while a concurrent queue can run many at once, and sync waits for the work to finish while async returns immediately.

    QuizEasy2 mins
  • An async function can pause at each await without blocking its thread, letting Swift run other work on that thread until the result is ready.

    QuizMedium2 mins
  • An actor is a reference type that protects its mutable state by running only one task at a time on it, and reentrancy means its state can change while one of its methods is suspended at an await.

    QuizMedium2 mins
  • @MainActor is a global actor that runs code on the main thread, and marking UI types and methods with it lets the compiler check that UI updates happen there.

    QuizMedium2 mins
  • Sendable marks types whose values can safely cross between concurrency domains, like tasks and actors, without causing data races.

    QuizHard3 mins
  • A task group runs a dynamic number of child tasks in parallel and collects their results, while async let is for a fixed, small number of tasks known at compile time.

    QuizMedium3 mins
  • Cancellation in Swift is cooperative; cancel() only sets a flag, and your code must check Task.isCancelled or call try Task.checkCancellation() to stop.

    QuizMedium2 mins
  • A deadlock is when threads wait for each other forever, a data race is unsynchronized access to the same memory with at least one write, and a race condition is a logic bug that depends on timing.

    QuizMedium3 mins
  • The Swift 6 language mode turns data-race checks into compile errors, so shared mutable state must be isolated to an actor or be Sendable; you migrate module by module, starting with warnings.

    QuizHard3 mins
  • Run an action only after the calls stop for a short time, like a search box that waits until the user stops typing.

    Swift codingMedium25 mins9 tests
  • Run an action at most once per time window. The first call runs right away, and the last call in the window runs when the window ends.

    Swift codingMedium25 mins9 tests
  • Retry a failing async operation, and double the wait time after each failure.

    Swift codingMedium20 mins8 tests
  • Build a bank account as an actor so many tasks can deposit, withdraw and transfer at the same time without data races.

    Swift codingEasy15 mins10 tests
  • Transform an array with async work in parallel, keep the input order, and never run more than N tasks at once.

    Swift codingHard35 mins8 tests
  • Array, Dictionary, Set and tuples in Swift, sorting with closures, reduce, zip, enumerated, 2D arrays, and the Big-O of each operation.

    GuideEasy2 mins
  • Find the biggest profit from one buy and one later sell, in a single pass.

    Swift codingEasy15 mins9 tests
  • For each index, multiply every other number, without division, using prefix and suffix products.

    Swift codingMedium20 mins8 tests
  • Count how often each hashtag is used and return the k most popular ones.

    Swift codingMedium20 mins9 tests
  • Find the longest run of unique characters with a sliding window and a dictionary.

    Swift codingMedium20 mins10 tests
  • Merge overlapping calendar events into busy blocks by sorting first, then scanning once.

    Swift codingMedium20 mins9 tests
  • Use binary search to find the first broken CI build with as few checks as possible.

    Swift codingEasy15 mins8 tests
  • Reverse a singly linked list in place by turning every next pointer around.

    Swift codingEasy15 mins8 tests

Week 3 — UIKit, SwiftUI and architecture

0/23 done

Week 4 — Data, platform, system design and behavioral

0/22 done
  • Build a URLRequest, call try await session.data(for:), check the HTTP status code, then decode the data, and choose a session configuration for caching, timeouts or background transfers.

    QuizEasy2 mins
  • Codable lets the compiler generate encoding and decoding code, and you customize it with CodingKeys, decoder strategies or a hand-written init(from:).

    QuizEasy1 mins
  • Let URLCache handle HTTP caching with Cache-Control and ETag headers, and add your own memory and disk cache for decoded, downsampled images.

    QuizMedium2 mins
  • Use UserDefaults for small settings, the Keychain for secrets, files for documents and caches, and SwiftData, Core Data or SQLite for structured data you query.

    QuizEasy3 mins
  • Each managed object context belongs to one queue, so you work inside perform, use the view context only on the main thread, and pass NSManagedObjectID values between contexts instead of objects.

    QuizHard2 mins
  • An app moves between not running, inactive, active, background and suspended states, with AppDelegate handling process-level events and SceneDelegate handling each window's UI lifecycle.

    QuizEasy2 mins
  • The app asks for permission, registers with APNs to get a device token, sends the token to its server, and the server sends a JSON payload to APNs, which delivers it to the device.

    QuizMedium2 mins
  • Swift Testing uses @Test functions with expect and require macros, parameterized tests and parallel runs by default, while XCTest uses XCTestCase subclasses and XCTAssert functions, and both can live in the same target.

    QuizEasy2 mins
  • Hide each dependency behind a protocol or closure, inject it, and in tests pass a test double such as a stub that returns fixed data or a spy that records calls.

    QuizMedium2 mins
  • Stutters are hitches where a frame misses its deadline, usually from main thread work in cell setup, image decoding, layout or offscreen rendering, so you measure with Instruments and move or remove that work.

    QuizMedium2 mins
  • Store small secrets like tokens in the Keychain with the right accessibility class, protect files with Data Protection, and use the Secure Enclave and biometrics for the most sensitive keys.

    QuizMedium2 mins
  • Decode a real-looking API response with snake_case keys, ISO 8601 dates, nested and optional fields, and an enum that survives new values.

    Swift codingMedium25 mins11 tests
  • Build an actor that loads pages for an infinite list, ignores duplicate loads while one is running, and stops at the last page.

    Swift codingHard35 mins9 tests
  • A step-by-step plan for the round, with time boxes, what to say at each step, and a worked example.

    GuideEasy5 mins
  • Design a typed, testable networking layer with endpoints, a middleware chain, single-flight token refresh, safe retries and clear errors.

    System designMedium45 mins
  • Build a Kingfisher-style library with a memory and disk cache, shared in-flight requests, downsampling, and safe cancellation in reused cells.

    System designHard1h
  • Design a social feed with cursor pagination, prefetching, optimistic likes and an offline cache that opens instantly.

    System designMedium45 mins
  • Design 1:1 and group chat with a WebSocket, server-side ordering, delivery states, an offline outbox and push notifications.

    System designHard1h
  • Design a notes app that works fully offline and syncs across devices with a local database, a push/pull sync engine and safe conflict resolution.

    System designHard1h
  • How to write an iOS resume that gets interviews, with impact bullets, good and bad examples, links and ATS tips.

    GuideEasy6 mins
  • How to answer "Tell me about a time…" questions with the STAR method, with 10 common questions and short sample answers from iOS work.

    GuideEasy9 mins
  • How to compare iOS job offers, understand levels, and negotiate politely, with sample email lines.

    GuideEasy7 mins