SWIFT getting UIImageView size!

Hello. I have a UIImageview that has aspect ratio at run time. By this, if the device is ipad or any higher resolutuin screen size device then UIImageview size must fit to its current screen size.

the top imageView.frame.size is 320x200 in iphone SE.

But when i check it in ipad 12.9 or other devices it is still 320x200. I can not imagine what do i have to do at this condition. The actual image appearance is fitting to screen’s new size but its frame.size is not changing. I need the image’s changed size because i have to change tableview row height according to this image view’s newsize and cover the rest of the screen. The tableView has only 9 nine cells.