title: Why does AVPlayerView not have a member named "player" in Swift
body: <p>I was trying to use <code>AVPlayerView</code> in Swift, but the compiler complaints that it cannot find a member named <code>player</code> in <code>AVPlayerView</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/0EWnc.png" alt="Error saying AVPlayerView does not have a member named &quot;player&quot;"></p>
  
  <p>But <code>AVPlayerView</code> clearly does have a property called <code>player</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/4K9T1.png" alt="AVPlayerView class definition shows it has a property named &quot;player&quot;"></p>
  
  <p>And other properties or methods are fine. It seems that only <code>player</code> is not recognized.</p>