Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit 564265e

Browse files
committed
Added Navigation Bar To Print Menu
1 parent e16dbf8 commit 564265e

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

Source Code/Note.it/Note.it iOS/ContentView.swift

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,16 +427,27 @@ struct ContentView: View {
427427
}
428428
.help("Print")
429429
.sheet(isPresented: $showingPrinting) {
430-
SamplePrintSetup(page:
431-
VStack {
432-
HStack {
433-
Text(document.text)
430+
NavigationStack {
431+
SamplePrintSetup(page:
432+
VStack {
433+
HStack {
434+
Text(document.text)
435+
Spacer()
436+
}
434437
Spacer()
435438
}
436-
Spacer()
439+
.padding()
440+
)
441+
.navigationTitle("Print")
442+
.navigationBarTitleDisplayMode(.inline)
443+
.toolbar {
444+
ToolbarItem(placement: .navigationBarTrailing) {
445+
Button(action: {showingPrinting = false}) {
446+
Text("Done")
447+
}
448+
}
437449
}
438-
.padding()
439-
)
450+
}
440451
}
441452
}
442453
}

0 commit comments

Comments
 (0)