EDIT:
After some cheating, I found another solution that would allow the scrollbar to scroll (and trigger the update control), even if the contentSize is less than the height of the scrollView. Just set the alwaysBounceVertical property to true:
self.scroll.alwaysBounceVertical = true
OLD RESPONSE:
The size of your content must be larger than the scroll height to make this work. Change this line:
self.scroll.contentSize = CGSize(width: self.view.bounds.width, height: 10)
To:
self.scroll.contentSize = CGSize(width: self.view.bounds.width, height: self.view.bounds.height+1)
This will allow your RefreshControl to enter.
Or, in your case, you should probably calculate the height of your cards, and then set this as the height for your contentSize.
donnywals
source share