In some situations I need to remove UIImageView, but element below UIImageView has top margin in respect to UIImageView so I need to set height of UIImageView to 0 (or 1 if you can't set 0) and set ishidden
property of UIImageView to true.
I tried this
imageView.frame = CGRect(x: imageView.frame.origin.x, y: imageView.frame.origin.y, width: 0, height: 0)
but nothing happens, UIImageView is not updated.