1

I am new to the WKWebView which I am using to load a privacy policy from an url in my application. The html is loading perfect but the content size is too small, I find it difficult to read on small screen size devices like 5s or iPhone SE. Here image of wkwebview

Is there any way to enlarge this contents? Please let me know the best approach to solve this problem. Thank You.

Deepak
  • 1,030
  • 2
  • 10
  • 21

1 Answers1

0

Use some CSS inside the privacy file (privacy.html).

<head>
    <style>
       html {
            height:100%;
       }
       body {
            font-family: "SourceSansPro-Semibold", Arial, serif; //your font
            font-size:large; //change this size to what fits
            background-color:#FFF;
            color: #000;
            margin:0;
            height:100%;
            padding:20px;
        }
    </style>
</head>
codenift
  • 25
  • 6