This question evaluates a candidate's proficiency with iOS UI layout and interaction, including grid layout and maintaining square cells, state management and data propagation between views, touch handling, and navigation using mobile UI frameworks.
You are building a small iOS prototype in Xcode (Swift). You may use SwiftUI or UIKit.
Implement a scrollable square grid of cells.
Incrementally add the following requirements:
Discuss: