In production Swift 6 & SwiftUI (Swift POP), what is the primary engineering purpose of 'Protocol-Oriented Programming (POP) & Protocol Extensions'?
- A. Design flexible, value-type-friendly iOS abstractions testable with lightweight struct fakes.
- B. Executing heavy disk I/O and synchronous network requests directly on the main UI rendering thread.
- C. Hardcoding production API secrets and plaintext auth tokens inside bundled client resources.
- D. Disabling lifecycle cancellation and holding strong references to destroyed screen contexts.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'Protocol-Oriented Programming (POP) & Protocol Extensions' is used in production Swift POP specifically for: Design flexible, value-type-friendly iOS abstractions testable with lightweight struct fakes.