0
votes

I have the following structure:

- Scroll view
    - UIView
        - Collection view

I gave the UIView the following constraints:

  1. top, left, right, and bottom = 0
  2. Equal width and height to the Scroll view

I've also disabled scrolling for the Collection view, as I want the whole page to scroll together.

However, when items are added (dynamically) to the collection view and I try to scroll, nothing happens.

What am I doing wrong? How can I make sure that the page scrolls all together?

1

1 Answers

0
votes

Maybe you should try removing the equal heights between view and scroll view because this limits view's height and doesn't allow collection view to grow.