Mercurial > public > simoleon
comparison Simoleon/UI/Sidebar.swift @ 171:70f0625bfcf1
Merge pull request #17 from denniscm190/development
open source project
committer: GitHub <noreply@github.com>
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 12 Oct 2021 16:17:35 +0200 |
parents | Simoleon/Helpers/Sidebar.swift@1fd9e27df5be Simoleon/Helpers/Sidebar.swift@f4e0c414cf6d |
children |
comparison
equal
deleted
inserted
replaced
146:f10b0e188905 | 171:70f0625bfcf1 |
---|---|
1 // | |
2 // Sidebar.swift | |
3 // Simoleon | |
4 // | |
5 // Created by Dennis Concepción Martín on 18/07/2021. | |
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 .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: "info.circle") | |
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 } |