Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
View is not refreshed on UI after resize
I have created now simple test project with Xcode 10.3 on iOS12 and tried with Simulator.I have added ImageView on the Main storyboard and set constraints to the Safe Area (Leading, Trailing, Top, Bottom).And this is the whole codeclass ViewController: UIViewController { @IBOutlet weak var imageView: UIImageView! override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) let newBackFrame = CGRect(x: 20, y: 20, width: 100, height: 150) self.imageView.frame = newBackFrame }And it works, the ImageView is resized when shown.I tried the same with Xcode 11 beta, iOS13 with Simulator and it does NOT work, the ImageView is not resized.That proves my first thesis.Could you please try the same?It seems that it works with viewDidLayoutSubviews() as you suggested 🙂Tho problem is with my View that ImageView has parent UIView and the constraints to it (same width/height, centering).When I did the same in the sample project, it does not work.I am trying to find a solution.If you have an idea how to overcome this, that would be great.Maybe if you have some knowledge about what was changed in this part with iOS13.Anyway thanks a lot for your support