File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,15 @@ struct HTMLTextView: UIViewRepresentable {
59
59
<style type= " text/css " media= " screen " >
60
60
/* Light mode */
61
61
:root {
62
- --body-bg: #FFFFFF ;
63
- --body-color: #1C1C1E ;
62
+ --body-bg: #FFFFFF00 ;
63
+ --body-color: #000000 ;
64
64
--link-color: #0164C8;
65
65
}
66
66
67
67
/* Dark mode */
68
68
@media (prefers-color-scheme: dark) {
69
69
:root {
70
- --body-bg: #1C1C1E ;
70
+ --body-bg: #00000000 ;
71
71
--body-color: #FFFFFF;
72
72
--link-color: #1796FA;
73
73
}
@@ -105,8 +105,8 @@ struct HTMLTextView: UIViewRepresentable {
105
105
// regardless of light/dark mode. If the user wants to implement dark
106
106
// mode, within their HTML, the background of the HTML will be shown
107
107
// over this background.
108
- uiView. backgroundColor = . white
109
- uiView. scrollView. backgroundColor = . white
108
+ uiView. backgroundColor = . clear
109
+ uiView. scrollView. backgroundColor = . clear
110
110
uiView. scrollView. isScrollEnabled = false
111
111
uiView. loadHTMLString ( displayHTML, baseURL: nil )
112
112
uiView. navigationDelegate = context. coordinator
You can’t perform that action at this time.
0 commit comments