Gifu/Source/AnimatedFrame.swift

11 lines
256 B
Swift
Raw Normal View History

2015-01-23 00:02:08 +00:00
/// Keeps a reference to an `UIImage` instance and its duration as a GIF frame.
struct AnimatedFrame {
let image: UIImage?
let duration: NSTimeInterval
static func null() -> AnimatedFrame {
return AnimatedFrame(image: .None, duration: 0)
}
}