UITableView animated resizing issue

64 views Asked by At

I have UIViewController A with the embedded UIViewController B without constraints (I need just autoresizing mask). B contains UITableView with edges constraints.

When I change the height of the embedded B-ViewController.view in animation block, an animation plays right

UIView.animate(withDuration: 3) {
            self.contentView.frame.size = .init(width: self.contentView.frame.width, height: 200)
            self.contentView.layoutIfNeeded()
}

But the table "cuts" its cells to the final state. How to fix it?

enter image description here

0

There are 0 answers