title: swift. AVPlayer. How to track when song finished playing?
body: <p>What is the east way to track when song finished playing with AVPlayer in Swift?</p>
  
  <p>Is there any function which is called when avplayer finished playing, or I should combine timer with avplayer class references?</p>