adding image behind UITableView make large title stop collapsing when scroll

170 Views Asked by At

I have a navigation large title and a table view, it all works fine, when I scroll the table view, the large title was still collapsing.

But after I add a image behind the table view, it's not collapsing anymore.

I found the answer here that says it will not work if there's a subview under the SafeArea other than UITableView, but if that's the case, how can i add a background image behind the UITableView?

Disclaimer: I have this code because I want my image to move up when the large title collapse

backgroundImageTopConstraint.constant = backgroundImageTopConstraint.constant - (self.navigationController?.navigationBar.frame.size.height)!
0

There are 0 best solutions below