What is the security difference between UIKit's UIViewController presentation and SwiftUI's sheet/fullScreenCover at the conceptual level regarding modal navigation security?
- A.B. SwiftUI sheets are sandboxed in a separate process for each modal, preventing data leakage between sheets
- B.A. Both frameworks rely on the same underlying UIKit presentation infrastructure; the security considerations are identical - developers must gate sensitive modal presentations with authentication and handle dismissal side effects in both
- C.C. UIKit view controllers have access to the full keychain while SwiftUI sheets are restricted to App Group containers
- D.D. SwiftUI sheets automatically dismiss when the device screen turns off, while UIKit modals persist
Why B is correct
SwiftUI's sheet and fullScreenCover are syntactic sugar over UIKit's present(_:animated:) mechanism. Neither framework adds automatic authentication gating. Developers must apply the same security patterns: authenticate before presenting sensitive views and handle the case where the app returns from background mid-presentation. Options B, C, and D describe capabilities that neither framework provides.
Know someone studying for Mobile Security Fundamentals? Send them this one.