mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
Merge pull request #18 from kkk669/refine-toolbar-on-contentview
Refine the toolbar on ContentView
This commit is contained in:
commit
73eb736278
1 changed files with 3 additions and 1 deletions
|
|
@ -169,13 +169,15 @@ extension ContentView: View {
|
|||
.listStyle(SidebarListStyle())
|
||||
.navigationTitle(Bundle.main.displayName!)
|
||||
.toolbar {
|
||||
ToolbarItemGroup(placement: .navigationBarTrailing) {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
Menu {
|
||||
Button("DNS-over-TLS", action: self.addNewDoTServer)
|
||||
Button("DNS-over-HTTPS", action: self.addNewDoHServer)
|
||||
} label: {
|
||||
Image(systemName: "plus")
|
||||
}
|
||||
}
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
EditButton()
|
||||
}
|
||||
ToolbarItem(placement: .status) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue