Mercurial > public > simoleon
diff Simoleon/ContentView.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/ContentView.swift Thu Dec 23 11:30:38 2021 +0100 +++ b/Simoleon/ContentView.swift Thu Dec 23 16:12:22 2021 +0100 @@ -18,23 +18,29 @@ if UIDevice.current.userInterfaceIdiom == .pad { NavigationView { Sidebar() - ConversionView() + ConversionView( + baseCurrency: SupportedCurrencyResult(code: "EUR", name: "Euro", isCrypto: 0), + quoteCurrency: SupportedCurrencyResult(code: "USD", name: "U.S. Dollar", isCrypto: 0) + ) } } else { TabView(selection: $tab) { - ConversionView() + ConversionView( + baseCurrency: SupportedCurrencyResult(code: "EUR", name: "Euro", isCrypto: 0), + quoteCurrency: SupportedCurrencyResult(code: "USD", name: "U.S. Dollar", isCrypto: 0) + ) .tabItem { Label("Convert", systemImage: "arrow.counterclockwise.circle") } .tag(Tab.convert) - Text("Favorites View") + FavoritesView() .tabItem { Label("Favorites", systemImage: "star") } .tag(Tab.favorites) - Text("About View") + AboutView() .tabItem { Label("About", systemImage: "info.circle") }