closed #58
This commit is contained in:
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user