Mercurial > public > simoleon
view Simoleon/Helpers/Sidebar.swift @ 195:7b009649a063 default tip
Move to mercurial
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 03 Jun 2025 14:43:48 +0100 |
parents | 13d5a8deb6c2 |
children |
line wrap: on
line source
// // 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( baseCurrency: SupportedCurrencyResult(code: "EUR", name: "Euro", isCrypto: 0), quoteCurrency: SupportedCurrencyResult(code: "USD", name: "U.S. Dollar", isCrypto: 0) ) ) { 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() } }