diff --git a/Multiplatform/Shared/Sidebar/SidebarToolbar.swift b/Multiplatform/Shared/Sidebar/SidebarToolbar.swift index e7df534f6..70123ddc3 100644 --- a/Multiplatform/Shared/Sidebar/SidebarToolbar.swift +++ b/Multiplatform/Shared/Sidebar/SidebarToolbar.swift @@ -11,6 +11,11 @@ import SwiftUI struct SidebarToolbar: View { @State private var showSettings: Bool = false + @State private var showAddSheet: Bool = false + + var addActionSheetButtons = [ + Button(action: {}, label: { Text("Add Feed") }) + ] var body: some View { VStack { @@ -28,11 +33,23 @@ struct SidebarToolbar: View { .font(.caption) .foregroundColor(.secondary) Spacer() - Button(action: {}, label: { + Button(action: { + showAddSheet = true + }, label: { Image(systemName: "plus") .font(.title3) .foregroundColor(.accentColor) - }).help("Add") + }) + .help("Add") + .actionSheet(isPresented: $showAddSheet) { + ActionSheet(title: Text("Add"), buttons: [ + .cancel(), + .default(Text("Add Web Feed")), + .default(Text("Add Twitter Feed")), + .default(Text("Add Reddit Feed")), + .default(Text("Add Folder")) + ]) + } } .padding(.horizontal, 16) .padding(.bottom, 12)