Design system component
Design a "toast" component for a design system. With several apps and teams using it, how would you define the public API you expose to callers, the way it's called and the options?
Design a "toast" component for a design system. With several apps and teams using it, how would you define the public API you expose to callers, the way it's called and the options?
Pin down requirements as display conditions, variants, lifetime, interaction, and accessibility, then split the API into a value-type Toast model and a ToastPresenter protocol (or a SwiftUI modifier). Colors and spacing come from design tokens so themes and dark mode work automatically, with VoiceOver announcements and Reduce Motion handled. Verify with snapshot and unit tests, building in the order model → presenter → view → tokens → tests.
iOS system designShort answerAdvanced
Design an app for delivery riders. The screen mockups are given: order list, order detail…
#api-design
iOS system designMultiple choiceAdvanced
You're designing an iOS client SDK for chat and calling that other companies' apps should…
#api-design
ArchitectureShort answerAdvanced
Here's a file search function. Now it has to find only "UTF-8 txt or H.264 mp4" and…
#api-design
NetworkingShort answerBasics
The interviewer says "explain what a RESTful API is." Going beyond the textbook…
#api-design