title: How to change WKWebView text color?
body: <p>I have a <code>ViewController</code> with <code>WKWebView</code> and I load my <code>.html</code> and <code>.css</code> files with text for <code>webView</code>. It is look like controller to reading books in Apple Books app.</p>
  <pre><code>do {
              guard let filePath = Bundle.main.path(forResource: &quot;index&quot;, ofType: &quot;html&quot;) 
                  else {
                      print (&quot;File reading error&quot;)
                      return
              }
              
              let headerString = &quot;&lt;meta name=\&quot;viewport\&quot; content=\&quot;initial-scale=1.1\&quot; /&gt;&quot;
              let content =  try String(contentsOfFile: filePath, encoding: .utf8)
              let baseUrl = URL(fileURLWithPath: filePath)
              
              webView.loadHTMLString(headerString+content, baseURL: baseUrl)
  
          }
          catch {
              print (&quot;File HTML error&quot;)
          }
  </code></pre>
  <p>Also I have 4 themes to change appearance in my <code>ViewController</code>(white, black, navy and yellow, like in Apple Books). I want to change my text color in <code>webView</code> when I change theme. How to do it? How to change color of <code>webView</code>?</p>