title: How to add refresh control to collection view large titles navigation bar in iOS 11?
body: <p>According to Apple the refresh control should be part of the large title navigation bar in iOS 11.</p>
  
  <p>The refresh control is part of the navigation bar (on pull to refresh) when I enabled the refresh control in my storyboard for a UITableViewController.</p>
  
  <p><a href="https://i.stack.imgur.com/328jD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/328jD.png" alt="refresh control with large titles"></a></p>
  
  <p>I can not do this in storyboard for all other views like UICollectionViewController. When I add a refresh control in code as a subview it is not part of the navigation bar:</p>
  
  <pre><code>refreshControl = UIRefreshControl()
  collectionView?.addSubview(refreshControl)
  </code></pre>
  
  <p>It looks like this though:</p>
  
  <p><a href="https://i.stack.imgur.com/892iZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/892iZ.png" alt="looks like this though"></a></p>
  
  <p><strong>How can I add a refresh control to my custom scroll view like UICollectionViewController in such a way that the refresh control is displayed in the navigation bar when large titles is used?</strong></p>