Daily iOS
Concurrency

Swift 6 singleton build

The take-home app you submitted has a singleton ImageCache created with static let shared (with var storage: [URL: UIImage] inside) that several screens read and write from background queues. The interviewer asks: "What happens if you build this project in Swift 6 language mode?"

Submit