Mercurial > public > simoleon
view 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 |
line wrap: on
line source
// // Sidebar.swift // Simoleon // // Created by Dennis Concepción Martín on 18/07/2021. // import SwiftUI struct Sidebar: View { var body: some View { List { NavigationLink(destination: ConversionView()) { Label("Convert", systemImage: "arrow.counterclockwise.circle") } .accessibilityIdentifier("NavigateToConversion") NavigationLink(destination: FavoritesView()) { Label("Favorites", systemImage: "star") } .accessibilityIdentifier("NavigateToFavorites") NavigationLink(destination: AboutView()) { Label("About", systemImage: "gear") } .accessibilityIdentifier("NavigateToSettings") } .listStyle(SidebarListStyle()) .navigationTitle("Categories") .accessibilityIdentifier("Sidebar") } } struct Sidebar_Previews: PreviewProvider { static var previews: some View { NavigationView { Sidebar() } } }