Mercurial > public > simoleon
diff Simoleon/Helpers/Sidebar.swift @ 187:13d5a8deb6c2
add AboutView and FavoritesView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 23 Dec 2021 16:12:22 +0100 |
parents | 1ebd1c5dd302 |
children |
line wrap: on
line diff
--- a/Simoleon/Helpers/Sidebar.swift Thu Dec 23 11:30:38 2021 +0100 +++ b/Simoleon/Helpers/Sidebar.swift Thu Dec 23 16:12:22 2021 +0100 @@ -10,15 +10,20 @@ struct Sidebar: View { var body: some View { List { - NavigationLink(destination: ConversionView()) { + 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: Text("Favorites View")) { + NavigationLink(destination: FavoritesView()) { Label("Favorites", systemImage: "star") } - NavigationLink(destination: Text("About")) { + NavigationLink(destination: AboutView()) { Label("About", systemImage: "info.circle") } }