Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 1346589

Browse files
authored
Replace the .toolbar { ... } block with navigationBarItems(trailing:) — stable, unambiguous, keeps the same UI.
1 parent ee5627b commit 1346589

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

Sources/prosign/views/CertificateView.swift

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -390,24 +390,22 @@ struct CertificateView: View {
390390
.padding()
391391
}
392392
.background(Color(.systemGray6))
393-
.toolbar {
394-
ToolbarItemGroup(placement: .navigationBarTrailing) {
395-
Menu {
396-
Button {
397-
showAddCertificateSheet = true
398-
} label: {
399-
Label("Add from Files", systemImage: "folder.badge.plus")
400-
}
401-
Button {
402-
showOfficialSheet = true
403-
} label: {
404-
Label("Add from Official", systemImage: "globe")
405-
}
393+
.navigationBarItems(trailing:
394+
Menu {
395+
Button {
396+
showAddCertificateSheet = true
397+
} label: {
398+
Label("Add from Files", systemImage: "folder.badge.plus")
399+
}
400+
Button {
401+
showOfficialSheet = true
406402
} label: {
407-
Image(systemName: "plus")
403+
Label("Add from Official", systemImage: "globe")
408404
}
405+
} label: {
406+
Image(systemName: "plus")
409407
}
410-
}
408+
)
411409
// ADD sheet (new certificate only)
412410
.sheet(isPresented: $showAddCertificateSheet, onDismiss: {
413411
reloadCertificatesAndEnsureSelection()

0 commit comments

Comments
 (0)