Build an emoji blaster animation on iOS
PinterestSoftware Engineer · OnsiteLast updated
This question evaluates a developer's skills in iOS UI interaction, animation frameworks, event scheduling and concurrency, performance optimization, and designing testable application architecture.
Build an iOS "blaster" app with a button at the bottom; when the user presses and holds, it emits emoji projectiles that animate toward the top of the screen at regular intervals. Specify your animation approach (Core Animation, UIKit Dynamics, or SwiftUI), scheduling/timers for continuous firing, collision or off-screen cleanup, performance considerations for many concurrent animations, and how you would structure the code for testability.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.