Gifu/Source/Animatable.swift

8 lines
300 B
Swift
Raw Normal View History

/// Protocol that requires its members to have a `layer`, `frame`, and `contentMode` property.
2015-01-23 00:02:08 +00:00
/// Classes confirming to this protocol can serve as a delegate to `Animator`.
2015-01-22 10:54:27 +00:00
protocol Animatable {
var layer: CALayer { get }
var frame: CGRect { get }
var contentMode: UIViewContentMode { get }
2015-01-22 10:54:27 +00:00
}