V
V
Vadym Piatkovskyi2017-05-08 20:04:59
Swift
Vadym Piatkovskyi, 2017-05-08 20:04:59

How can I find out the size of the displayed image?

I need to get the size of the image after the aspect fit in order to do the following:
bDskv.png
And roughly change the height of the uiimageview for each image like so:
oOQQv.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
ManWithBear, 2017-05-08
@Zinapp

let height = image.size.height * imageView.size.width / image.size.width

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question