mirror of
https://github.com/yattee/yattee.git
synced 2026-07-19 05:42:04 +00:00
Fix build error with confirmationDialog on CI Xcode
Replace the item-based confirmationDialog overload, which is unavailable in the Xcode 26.5 SDK used on CI, with the isPresented/presenting variant.
This commit is contained in:
@@ -63,8 +63,12 @@ struct LegacyAccountsImportView: View {
|
|||||||
}
|
}
|
||||||
.confirmationDialog(
|
.confirmationDialog(
|
||||||
pendingRemoval?.confirmationTitle ?? "",
|
pendingRemoval?.confirmationTitle ?? "",
|
||||||
item: $pendingRemoval,
|
isPresented: Binding(
|
||||||
titleVisibility: .visible
|
get: { pendingRemoval != nil },
|
||||||
|
set: { if !$0 { pendingRemoval = nil } }
|
||||||
|
),
|
||||||
|
titleVisibility: .visible,
|
||||||
|
presenting: pendingRemoval
|
||||||
) { removal in
|
) { removal in
|
||||||
Button(String(localized: "migration.accounts.remove.confirm"), role: .destructive) {
|
Button(String(localized: "migration.accounts.remove.confirm"), role: .destructive) {
|
||||||
confirmRemoval(removal)
|
confirmRemoval(removal)
|
||||||
|
|||||||
Reference in New Issue
Block a user