Daily iOS
SwiftUI

Choosing SwiftUI or UIKit

You're adding a new account detail screen to a banking app built in UIKit. By what criteria would you decide whether to build this screen in SwiftUI or UIKit?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

For a new, self-contained screen made of state-driven forms and lists, like a balance and transaction history, go with SwiftUI; when you need complex custom scrolling, pixel-level layout, or the minimum OS is iOS 15 or earlier, choose UIKit; and even with SwiftUI, slot it into the existing flow through a single UIHostingController layer.

Share a question