title: run code when Gifu has finished animating
body: <p>I've installed Gifu into my project to manage some gif animations. </p>
  
  <p>Does anyone know how to run code when 1 loop of the animation is finished?</p>
  
  <p>I seem to get the completion handled code running at the same time as the animation.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      animatedDone.animate(withGIFNamed: "animatedTick.gif")
      animatedDone.prepareForAnimation(withGIFNamed: "animatedTick.gif", loopCount: 1) { (Void) in
          saveAndExit()
      }
  
  }
  </code></pre>