Mercurial > public > simoleon
diff Simoleon/UI/Sidebar.swift @ 156:84137052813d
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 28 Aug 2021 11:15:25 +0100 |
parents | |
children | 1940db1ef321 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/UI/Sidebar.swift Sat Aug 28 11:15:25 2021 +0100 @@ -0,0 +1,43 @@ +//// +//// Sidebar.swift +//// Simoleon +//// +//// Created by Dennis Concepción Martín on 18/07/2021. +//// +// +//import SwiftUI +// +//struct Sidebar: View { +// @Environment(\.managedObjectContext) private var viewContext +// @FetchRequest(sortDescriptors: []) private var defaultCurrency: FetchedResults<DefaultCurrency> +// +// var body: some View { +// List { +// NavigationLink(destination: Conversion()) { +// Label("Convert", systemImage: "arrow.counterclockwise.circle") +// } +// .accessibilityIdentifier("NavigateToConversion") +// +// NavigationLink(destination: Favorites()) { +// Label("Favorites", systemImage: "star") +// } +// .accessibilityIdentifier("NavigateToFavorites") +// +// NavigationLink(destination: Settings()) { +// Label("Settings", systemImage: "gear") +// } +// .accessibilityIdentifier("NavigateToSettings") +// } +// .listStyle(SidebarListStyle()) +// .navigationTitle("Categories") +// .accessibilityIdentifier("Sidebar") +// } +//} +// +//struct Sidebar_Previews: PreviewProvider { +// static var previews: some View { +// NavigationView { +// Sidebar() +// } +// } +//}