diff Simoleon/ContentView.swift @ 14:03ce7421c6f4

Minor UI updates
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Wed, 14 Jul 2021 10:06:37 +0100
parents cdc5f728b105
children a02f463aa906
line wrap: on
line diff
--- a/Simoleon/ContentView.swift	Tue Jul 13 19:56:33 2021 +0100
+++ b/Simoleon/ContentView.swift	Wed Jul 14 10:06:37 2021 +0100
@@ -21,21 +21,20 @@
         if showingView {
             NavigationView {
                 ScrollView(showsIndicators: false) {
-                    VStack(spacing: 20) {
+                    VStack(spacing: 30) {
                         SearchBar(text: $text, isEditing: $isEditing)
-                            .padding(.vertical)
                             .padding(.top)
                         
                         if text.isEmpty {
                             ForEach(popularCurrencyPairsQuote, id: \.self) { currencyQuote in
                                 CurrencyRow(currencyQuote: currencyQuote)
                                     .onTapGesture { self.popularSelectedCurrencyPairQuote = currencyQuote }
-                                    .padding(.bottom)
                             }
                         } else {
                             SearchedCurrencyList(text: $text)
                         }
                     }
+                    .padding(.vertical)
                     .sheet(item: self.$popularSelectedCurrencyPairQuote) { currencyQuote in
                         CurrencyConversion(currencyQuote: currencyQuote)
                     }
@@ -91,6 +90,7 @@
 
 struct ContentView_Previews: PreviewProvider {
     static var previews: some View {
-        ContentView().environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
+        ContentView()
+            .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
     }
 }