From dc360de3550c6b4717a37555cbe86f47091731d8 Mon Sep 17 00:00:00 2001 From: Trey t Date: Fri, 4 Feb 2022 17:18:38 -0600 Subject: [PATCH] closed #58 --- Shared/views/ContentView.swift | 9 +++------ Shared/views/SettingsView.swift | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Shared/views/ContentView.swift b/Shared/views/ContentView.swift index 8011131..15e5e7d 100644 --- a/Shared/views/ContentView.swift +++ b/Shared/views/ContentView.swift @@ -34,8 +34,9 @@ struct ContentView: View { @ObservedObject var viewModel = ContentModeViewModel() init(){ + UIPageControl.appearance().currentPageIndicatorTintColor = UIColor.label + UIPageControl.appearance().pageIndicatorTintColor = UIColor.black.withAlphaComponent(0.2) UITabBar.appearance().backgroundColor = theme.secondaryBGColor - print(theme) } var body: some View { @@ -264,7 +265,7 @@ struct ContentView: View { .frame(minWidth: 0, maxWidth: .infinity) } else { // selection hre doesn't work ... - TabView(selection: $mainViewTopHeaderIndex) { + TabView { SwitchableView(daysBack: 30) .frame(height: headerHeight) .frame(minWidth: 0, maxWidth: .infinity) @@ -276,10 +277,6 @@ struct ContentView: View { .contentShape(Rectangle()) } .tabViewStyle(.page) - .onAppear { - UIPageControl.appearance().currentPageIndicatorTintColor = UIColor.label - UIPageControl.appearance().pageIndicatorTintColor = UIColor.black.withAlphaComponent(0.2) - } .padding([.trailing, .leading]) } } diff --git a/Shared/views/SettingsView.swift b/Shared/views/SettingsView.swift index 20300c3..0fe2765 100644 --- a/Shared/views/SettingsView.swift +++ b/Shared/views/SettingsView.swift @@ -261,7 +261,6 @@ struct SettingsView: View { ForEach(Theme.allCases, id:\.rawValue) { aTheme in Button(action: { theme = aTheme - print(theme) }, label: { VStack { aTheme.preview