iOS Question webview scale to fit get small image

John Woodsmall

Active Member
Licensed User
Longtime User
when i open a webview with scale to fit on i get a small image that can be expanded with
fingers.

if not scale to fit...it is too big and will not expand with fingers.

how can i expand the size of the starting image?

(i tried the wkwebview as well...same thing).
 

Attachments

  • Result_SMHS.jpg
    Result_SMHS.jpg
    251.8 KB · Views: 205

Osp

Member
Licensed User
Longtime User
I would recommend trying some css in the webview to scale the image, there is for example such things:
background: url(greatimage.jpg); background-size: cover; //(or cntain) if you apply this rule for the html or maybe body or the element the image is "in" it should fill the whole view (if the parent element is filling the whole view as well).
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime User
i have the path to the image (it is dynamic so i get it from the httputils)
how do i make the source for the imageview that path?
 
Upvote 0
Top