Categories
Release notes

Vulcan 2.14 adds Liquid Glass and improves the generated code for alerts and confirmation dialogs

Vulcan 2.14 introduces Liquid Glass for the representation of SwiftUI view in the app canvas. The exported code was already compatible with Liquid Glass in previous Vulcan versions and remains universal, working on iOS 26 and older iOS versions.

Improved code for alerts and confirmation dialogs

The deprecated Alert view has been replaced by the alert(_:isPresented:actions:message:) view modifier.

struct ContentView: View {
	@State private var isAlertPresented = false
	
	var body: some View {
		Text("Hello, World!")
			.alert(
				"Alert",
				isPresented: $isAlertPresented,
				actions: {
					Button(
						"Close",
						role: .close,
						action: {}
					)
					Button(
						"Cancel",
						role: .cancel,
						action: {}
					)
				},
				message: {
					Text("Lorem ipsum dolor")
				})
	}
}

The deprecated ActionSheet view has been replaced by the confirmationDialog(_:isPresented:titleVisibility:actions:message:) view modifier.”

struct ContentView: View {
	@State private var isDialogPresented = false
	
	var body: some View {
		Text("Hello, World!")
			.toolbar {
				ToolbarItem(placement: .navigationBarTrailing) {
					Button("Action") {
						isDialogPresented = true
					}
					.confirmationDialog(
						"Confirmation Dialog",
						isPresented: $isDialogPresented,
						titleVisibility: .visible,
						actions: {
							Button(
								"Destructive",
								role: .destructive,
								action: {}
							)
							Button(
								"Confirm",
								role: .close,
								action: {}
							)
							Button(
								"Close",
								role: .close,
								action: {}
							)
						},
						message: {
							Text("Lorem ipsum dolor")
						}
					)
				}
			}
	}
}