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

Commit d43b970

Browse files
authored
Refactor navigation titles and remove toolbars
1 parent afb7546 commit d43b970

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

Sources/prosign/prosign.swift

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,30 @@ struct ProSign: App {
1212
struct MainTabView: View {
1313
var body: some View {
1414
TabView {
15-
// ---- Signer Tab ----
1615
NavigationStack {
1716
SignerView()
18-
.navigationBarTitleDisplayMode(.inline)
19-
.toolbar {
20-
ToolbarItem(placement: .principal) {
21-
Text("ProSign - Signer")
22-
.font(.headline)
23-
}
24-
}
17+
.navigationTitle("ProSign - Signer")
18+
.navigationBarTitleDisplayMode(.large)
2519
}
2620
.tabItem {
2721
Image(systemName: "hammer")
2822
Text("Signer")
2923
}
3024

31-
// ---- Certificates Tab ----
3225
NavigationStack {
3326
CertificateView()
34-
.navigationBarTitleDisplayMode(.inline)
35-
.toolbar {
36-
ToolbarItem(placement: .principal) {
37-
Text("ProSign - Certificates")
38-
.font(.headline)
39-
}
40-
}
27+
.navigationTitle("ProSign - Certificates")
28+
.navigationBarTitleDisplayMode(.large)
4129
}
4230
.tabItem {
4331
Image(systemName: "key")
4432
Text("Certificates")
4533
}
4634

47-
// ---- About Tab ----
4835
NavigationStack {
4936
AboutView()
50-
.navigationBarTitleDisplayMode(.inline)
51-
.toolbar {
52-
ToolbarItem(placement: .principal) {
53-
Text("ProSign - About")
54-
.font(.headline)
55-
}
56-
}
37+
.navigationTitle("ProSign - About")
38+
.navigationBarTitleDisplayMode(.large)
5739
}
5840
.tabItem {
5941
Image(systemName: "info.circle")

0 commit comments

Comments
 (0)