There is a task - to make a scrolling screen, which consists of a slider, a button and a list of products. The slider is implemented using a ContainerView which contains a UIPageViewController . The problem is that if I place all the elements (slider, button and UICollectionView with products) inside the ScrollView , then the UICollectionView collapses. If I place a slider and a button inside a UICollectionView then the compiler swears that it is impossible to place the container in elements that can be copied in runtime
error: Illegal Configuration: Container Views cannot be placed in elements that are repeated at runtime.
As far as I remember, the next trick in the android was to set the program height for RecyclerView (analogous to UIContainerView ), which allowed RecyclerView have a constant for each specific case and fully fit into the ScrollView frame. How can this be realtzovat in iOS?