/// Keeps a reference to an `UIImage` instance and its duration as a GIF frame. struct AnimatedFrame { let image: UIImage? let duration: NSTimeInterval }