title: Accessing SearchBar in CollectionView Header Cell - Swift
body: <p>At the moment I have a simple <strong>UICollectionReusableView</strong> Class implemented on the CollectionView header cell:</p>
  
  <pre><code>class SearchBarCollectionReusableView: UICollectionReusableView {
  
      @IBOutlet weak var searchBar:UISearchBar!
      @IBOutlet weak var filterSegCtrl:UISegmentedControl!
  
      override init(frame: CGRect) {
          super.init(frame: frame)
      }
  
      required init(coder aDecoder: NSCoder) {
          super.init(coder: aDecoder)
      }
  }
  </code></pre>
  
  <p>I then add this to my <strong>UICollectionViewClass</strong> to show the header below:</p>
  
  <pre><code>override func collectionView(collectionView: UICollectionView!, viewForSupplementaryElementOfKind kind: String!, atIndexPath indexPath: NSIndexPath!) -&gt; UICollectionReusableView! {
  
      var reusableview:UICollectionReusableView!
  
      if kind == UICollectionElementKindSectionHeader {
          let headerView:SearchBarCollectionReusableView = collectionView.dequeueReusableSupplementaryViewOfKind(UICollectionElementKindSectionHeader, withReuseIdentifier: "SearchBar", forIndexPath: indexPath) as SearchBarCollectionReusableView
          reusableview = headerView
      }
      return reusableview
  }
  </code></pre>
  
  <p>How do i get access to the UISearchBar properties including <em>delegates</em> and <em>text</em> in my <strong>UICollectionViewClass</strong> ?</p>