Adds Menu for "Add" tool bar button
This commit is contained in:
parent
dbe662b7db
commit
177c18d4ea
@ -68,21 +68,14 @@ struct SidebarToolbarModifier: ViewModifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ToolbarItem(placement: .bottomBar, content: {
|
ToolbarItem(placement: .bottomBar, content: {
|
||||||
Button {
|
Menu(content: {
|
||||||
viewModel.showActionSheet = true
|
Button { viewModel.sheetToShow = .web } label: { Text("Add Web Feed") }
|
||||||
} label: {
|
Button { /* TODO:- Add Twitter Feed */ } label: { Text("Add Twitter Feed") }
|
||||||
|
Button { /* TODO:- Add Reddit Feed */ } label: { Text("Add Reddit Feed") }
|
||||||
|
Button { viewModel.sheetToShow = .folder } label: { Text("Add Folder") }
|
||||||
|
}, label: {
|
||||||
AppAssets.addMenuImage.font(.title3)
|
AppAssets.addMenuImage.font(.title3)
|
||||||
}
|
})
|
||||||
.help("Add")
|
|
||||||
.actionSheet(isPresented: $viewModel.showActionSheet) {
|
|
||||||
ActionSheet(title: Text("Add"), buttons: [
|
|
||||||
.cancel(),
|
|
||||||
.default(Text("Add Web Feed"), action: { viewModel.sheetToShow = .web }),
|
|
||||||
.default(Text("Add Twitter Feed")),
|
|
||||||
.default(Text("Add Reddit Feed")),
|
|
||||||
.default(Text("Add Folder"), action: { viewModel.sheetToShow = .folder })
|
|
||||||
])
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user