Skip to content

Commit 5bc5d01

Browse files
committed
add toolbar button to trigger load function in EditorView
1 parent bd60f89 commit 5bc5d01

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lara/views/EditorView.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ struct EditorView: View {
5555
}
5656
}
5757
.navigationTitle("MobileGestalt")
58+
.toolbar {
59+
ToolbarItem(placement: .navigationBarTrailing) {
60+
Button {
61+
load()
62+
} label: {
63+
Image(systemName: "arrow.counterclockwise")
64+
}
65+
}
66+
}
5867
// .alert("Status", isPresented: .constant(status != nil)) {
5968
// Button("OK") { status = nil }
6069
// } message: {

0 commit comments

Comments
 (0)