Mercurial > public > simoleon
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/Helpers/Sidebar.swift Tue Oct 26 18:18:36 2021 +0200 @@ -0,0 +1,34 @@ +// +// Sidebar.swift +// Simoleon +// +// Created by Dennis Concepción Martín on 26/10/21. +// + +import SwiftUI + +struct Sidebar: View { + var body: some View { + List { + NavigationLink(destination: ConversionView()) { + Label("Convert", systemImage: "arrow.counterclockwise.circle") + } + + NavigationLink(destination: FavoritesView()) { + Label("Favorites", systemImage: "star") + } + + NavigationLink(destination: AboutView()) { + Label("About", systemImage: "info.circle") + } + } + .listStyle(SidebarListStyle()) + .navigationTitle("Categories") + } +} + +struct Sidebar_Previews: PreviewProvider { + static var previews: some View { + Sidebar() + } +}