Skip to content

Commit 65c905f

Browse files
dadachiclaude
andauthored
Replace confirmationDialog with alert for consistent centered presentation (#33)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9b8a627 commit 65c905f

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

NativeAppTemplate/UI/App Root/MainView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct MainView: View {
3030
.onChange(of: sessionController.shouldUpdateTerms) { _, _ in
3131
viewModel?.handleTermsUpdate()
3232
}
33-
.confirmationDialog(
33+
.alert(
3434
String.itemTagAlreadyCompleted,
3535
isPresented: Binding(
3636
get: { viewModel?.isShowingResetConfirmationDialog ?? false },

NativeAppTemplate/UI/Scan/ScanView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private extension ScanView {
138138
}
139139
}
140140
.padding()
141-
.confirmationDialog(
141+
.alert(
142142
String.itemTagAlreadyCompleted,
143143
isPresented: $viewModel.isShowingResetConfirmationDialog
144144
) {

NativeAppTemplate/UI/Settings/ShopkeeperEditView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private extension ShopkeeperEditView {
8484
.listRowBackground(Color.clear)
8585
}
8686
}
87-
.confirmationDialog(
87+
.alert(
8888
String.deleteMyAccount,
8989
isPresented: $viewModel.isShowingDeleteConfirmationDialog
9090
) {

NativeAppTemplate/UI/Shop Settings/ItemTag Detail/ItemTagDetailView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private extension ItemTagDetailView {
135135
)
136136
}
137137
)
138-
.confirmationDialog(
138+
.alert(
139139
String.buttonDeleteTag,
140140
isPresented: $viewModel.isShowingDeleteConfirmationDialog
141141
) {

NativeAppTemplate/UI/Shop Settings/ShopSettingsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private extension ShopSettingsView {
128128
}
129129
}
130130
.navigationTitle(String.shopSettingsLabel)
131-
.confirmationDialog(
131+
.alert(
132132
String.resetNumberTags,
133133
isPresented: $viewModel.isShowingResetConfirmationDialog
134134
) {
@@ -141,7 +141,7 @@ private extension ShopSettingsView {
141141
} message: {
142142
Text(String.areYouSure)
143143
}
144-
.confirmationDialog(
144+
.alert(
145145
String.deleteShop,
146146
isPresented: $viewModel.isShowingDeleteConfirmationDialog
147147
) {

0 commit comments

Comments
 (0)