Mercurial > public > simoleon
diff Simoleon/Helpers/Sidebar.swift @ 186:1ebd1c5dd302
finish ConversionView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 23 Dec 2021 11:30:38 +0100 |
parents | |
children | 13d5a8deb6c2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/Helpers/Sidebar.swift Thu Dec 23 11:30:38 2021 +0100 @@ -0,0 +1,35 @@ +// +// Sidebar.swift +// Simoleon +// +// Created by Dennis Concepción Martín on 23/12/21. +// + +import SwiftUI + +struct Sidebar: View { + var body: some View { + List { + NavigationLink(destination: ConversionView()) { + Label("Convert", systemImage: "arrow.counterclockwise.circle") + } + + NavigationLink(destination: Text("Favorites View")) { + Label("Favorites", systemImage: "star") + } + + NavigationLink(destination: Text("About")) { + Label("About", systemImage: "info.circle") + } + } + .listStyle(SidebarListStyle()) + .navigationTitle("Categories") + + } +} + +struct Sidebar_Previews: PreviewProvider { + static var previews: some View { + Sidebar() + } +}