Mercurial > public > simoleon
view Simoleon/Helpers/Sidebar.swift @ 42:d25b02d439d4
Minor updates subscription and legal requirements
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 26 Jul 2021 15:35:06 +0100 |
parents | 41a905e591e4 |
children | b0bce2c8e4a9 |
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: Conversion(currencyPair: "USD/GBP")) { Label("Convert", systemImage: "arrow.counterclockwise.circle") } NavigationLink(destination: Favourites()) { Label("Favourites", systemImage: "star") } NavigationLink(destination: Settings()) { Label("Settings", systemImage: "gear") } } .listStyle(SidebarListStyle()) .navigationTitle(Text("Categories", comment: "Side bar navigation title")) } } struct Sidebar_Previews: PreviewProvider { static var previews: some View { Sidebar() } }