title: What is the swift equivalent of makeObjectsPerformSelector?
body: <p>In Objective-C I'm using this code to remove any sub-views:</p>
  
  <pre><code>[self.view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
  </code></pre>
  
  <p>But how to use it in swift? I saw <a href="https://developer.apple.com/library/prerelease/mac/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/index.html#//apple_ref/occ/instm/NSArray/makeObjectsPerformSelector:" rel="noreferrer">apple documentation</a> to use that method in swift</p>
  
  <pre><code>func makeObjectsPerformSelector(_ aSelector: Selector)
  </code></pre>
  
  <p>but when I try it, I get an error: <code>'AnyObject[]' does not have a member named 'makeObjectsPerformSelector'</code></p>
  
  <p>Are there any ways to remove sub-views in swift?</p>