8 lines
300 B
Swift
8 lines
300 B
Swift
/// Protocol that requires its members to have a `layer`, `frame`, and `contentMode` property.
|
|
/// Classes confirming to this protocol can serve as a delegate to `Animator`.
|
|
protocol Animatable {
|
|
var layer: CALayer { get }
|
|
var frame: CGRect { get }
|
|
var contentMode: UIViewContentMode { get }
|
|
}
|