Assume that the image you get is myImage (UIImage type)
let myImageView=UIImageView (frame: CGRectMake(0,0,(myImage?.size.width)!,(myImage?.size.height)!))
myImageView.image=myImage
If you write the code, the size of the UIImageView will be the size of the image.
I'm sorry if it's not the answer I need.
© 2024 OneMinuteCode. All rights reserved.