Skip to content

Commit bfd88f7

Browse files
author
golson
committed
Sepia fix
1 parent b30a177 commit bfd88f7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

WMFComponents/Sources/WMFComponents/Components/Activity Tab/WMFActivityTabCustomizeView.swift

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public struct WMFActivityTabCustomizeView: View {
2121
viewModel.localizedStrings.timeSpentReading,
2222
isOn: $viewModel.isTimeSpentReadingOn
2323
)
24+
.listRowBackground(Color(theme.paperBackground).edgesIgnoringSafeArea([.all]))
2425
.onChange(of: viewModel.isTimeSpentReadingOn) { newValue in
2526
guard newValue == true else { return }
2627
guard viewModel.isLoggedIn else {
@@ -34,6 +35,7 @@ public struct WMFActivityTabCustomizeView: View {
3435
viewModel.localizedStrings.readingInsights,
3536
isOn: $viewModel.isReadingInsightsOn
3637
)
38+
.listRowBackground(Color(theme.paperBackground).edgesIgnoringSafeArea([.all]))
3739
.onChange(of: viewModel.isReadingInsightsOn) { newValue in
3840
guard newValue == true else { return }
3941
guard viewModel.isLoggedIn else {
@@ -47,6 +49,7 @@ public struct WMFActivityTabCustomizeView: View {
4749
viewModel.localizedStrings.editingInsights,
4850
isOn: $viewModel.isEditingInsightsOn
4951
)
52+
.listRowBackground(Color(theme.paperBackground).edgesIgnoringSafeArea([.all]))
5053
.onChange(of: viewModel.isEditingInsightsOn) { newValue in
5154
guard newValue == true else { return }
5255
guard viewModel.isLoggedIn else {
@@ -60,12 +63,25 @@ public struct WMFActivityTabCustomizeView: View {
6063
viewModel.localizedStrings.timeline,
6164
isOn: $viewModel.isTimelineOfBehaviorOn
6265
)
66+
.listRowBackground(Color(theme.paperBackground).edgesIgnoringSafeArea([.all]))
6367
} footer: {
6468
Text(viewModel.localizedStrings.footer)
6569
.font(Font(WMFFont.for(.caption1)))
6670
.foregroundStyle(Color(uiColor: theme.secondaryText))
6771
}
6872
}
69-
.background(Color(uiColor: theme.midBackground))
73+
.listRowBackground(Color(theme.paperBackground).edgesIgnoringSafeArea([.all]))
74+
.listStyle(GroupedListStyle())
75+
.listBackgroundColor(Color(theme.baseBackground))
76+
.onAppear(perform: {
77+
if #unavailable(iOS 16) {
78+
UITableView.appearance().backgroundColor = UIColor.clear
79+
}
80+
})
81+
.onDisappear(perform: {
82+
if #unavailable(iOS 16) {
83+
UITableView.appearance().backgroundColor = UIColor.systemGroupedBackground
84+
}
85+
})
7086
}
7187
}

0 commit comments

Comments
 (0)