Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

PDF in WebView

Dear all,

Is it possible to replace the default PDF background colour the 50% grey to any other colour while using the new WebView? Using the standard .background method on WebView does not appear to have any effect:

WebView(pdfWebpage)
    .background(Color.blue) // no effect on the background of the PDF

Thanks!

Hi, thanks for trying out the new API! It is not currently possible to customize the PDF background color.

We will need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report and post the FB number here once you do.

Bug Reporting: How and Why? has tips on creating your bug report.

PDF in WebView
 
 
Q