Mercurial > public > simoleon
comparison Simoleon/Helpers/Sidebar.swift @ 179:7c4a789e51ba
add views
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 26 Oct 2021 18:18:36 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
178:1077bc0ffdbf | 179:7c4a789e51ba |
---|---|
1 // | |
2 // Sidebar.swift | |
3 // Simoleon | |
4 // | |
5 // Created by Dennis Concepción Martín on 26/10/21. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct Sidebar: View { | |
11 var body: some View { | |
12 List { | |
13 NavigationLink(destination: ConversionView()) { | |
14 Label("Convert", systemImage: "arrow.counterclockwise.circle") | |
15 } | |
16 | |
17 NavigationLink(destination: FavoritesView()) { | |
18 Label("Favorites", systemImage: "star") | |
19 } | |
20 | |
21 NavigationLink(destination: AboutView()) { | |
22 Label("About", systemImage: "info.circle") | |
23 } | |
24 } | |
25 .listStyle(SidebarListStyle()) | |
26 .navigationTitle("Categories") | |
27 } | |
28 } | |
29 | |
30 struct Sidebar_Previews: PreviewProvider { | |
31 static var previews: some View { | |
32 Sidebar() | |
33 } | |
34 } |