Do you mean that your button and search box are always fixed at the top? , if so, there is no need to use header. It is better to lay it out separately.
It would be nice if the part below your navigation bar is a whole and can be scrolled beyond the screen. That is, your carousel box and the cv below are a whole. Pack the above button, search box, and carousel box into a view and set it as the header of cv.
UITableViewController
Do you mean that your button and search box are always fixed at the top? , if so, there is no need to use header. It is better to lay it out separately.
collectionView is pretty good
It would be nice if the part below your navigation bar is a whole and can be scrolled beyond the screen.
That is, your carousel box and the cv below are a whole.
Pack the above button, search box, and carousel box into a view and set it as the header of cv.