SwiftUI Confirmation Dialog in iOS 26+

12 hours ago 3
ARTICLE AD BOX

I'm trying to adds a confirmation dialog in my app that comes up from the bottom of the screen. This is possible in iOS 18 with a .confirmationDialog(), but when I build the same code for iOS 26 I get a different result. I haven't found anything in SwiftUI's documentation about this change. Is it possible to change the code to get the appearance from iOS 18 on iOS 26?

import SwiftUI struct ContentView: View { @State private var dialogShowing: Bool = false var body: some View { VStack { Button("Press me") { dialogShowing = true } } .confirmationDialog("Options", isPresented: dialogShowing) { Button("Option A"){} Button("Option B"){} } } }

iOS 18

iOS 26

Read Entire Article