comparison Simoleon/UI/Sidebar.swift @ 167:1940db1ef321

Minor changes
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sat, 11 Sep 2021 16:30:40 +0200
parents 84137052813d
children f4e0c414cf6d
comparison
equal deleted inserted replaced
166:e4cbb1eea394 167:1940db1ef321
1 ////
2 //// Sidebar.swift
3 //// Simoleon
4 ////
5 //// Created by Dennis Concepción Martín on 18/07/2021.
6 ////
7 // 1 //
8 //import SwiftUI 2 // Sidebar.swift
3 // Simoleon
9 // 4 //
10 //struct Sidebar: View { 5 // Created by Dennis Concepción Martín on 18/07/2021.
11 // @Environment(\.managedObjectContext) private var viewContext
12 // @FetchRequest(sortDescriptors: []) private var defaultCurrency: FetchedResults<DefaultCurrency>
13 //
14 // var body: some View {
15 // List {
16 // NavigationLink(destination: Conversion()) {
17 // Label("Convert", systemImage: "arrow.counterclockwise.circle")
18 // }
19 // .accessibilityIdentifier("NavigateToConversion")
20 //
21 // NavigationLink(destination: Favorites()) {
22 // Label("Favorites", systemImage: "star")
23 // }
24 // .accessibilityIdentifier("NavigateToFavorites")
25 //
26 // NavigationLink(destination: Settings()) {
27 // Label("Settings", systemImage: "gear")
28 // }
29 // .accessibilityIdentifier("NavigateToSettings")
30 // }
31 // .listStyle(SidebarListStyle())
32 // .navigationTitle("Categories")
33 // .accessibilityIdentifier("Sidebar")
34 // }
35 //}
36 // 6 //
37 //struct Sidebar_Previews: PreviewProvider { 7
38 // static var previews: some View { 8 import SwiftUI
39 // NavigationView { 9
40 // Sidebar() 10 struct Sidebar: View {
41 // } 11 var body: some View {
42 // } 12 List {
43 //} 13 NavigationLink(destination: ConversionView()) {
14 Label("Convert", systemImage: "arrow.counterclockwise.circle")
15 }
16 .accessibilityIdentifier("NavigateToConversion")
17
18 NavigationLink(destination: FavoritesView()) {
19 Label("Favorites", systemImage: "star")
20 }
21 .accessibilityIdentifier("NavigateToFavorites")
22
23 NavigationLink(destination: AboutView()) {
24 Label("About", systemImage: "gear")
25 }
26 .accessibilityIdentifier("NavigateToSettings")
27 }
28 .listStyle(SidebarListStyle())
29 .navigationTitle("Categories")
30 .accessibilityIdentifier("Sidebar")
31 }
32 }
33
34 struct Sidebar_Previews: PreviewProvider {
35 static var previews: some View {
36 NavigationView {
37 Sidebar()
38 }
39 }
40 }