Animation
@objc(GSAnimation)
public protocol Animation
Base interface for an Animation.
-
Animation type.
Declaration
Swift
var type: AnimationType { get }
-
Animation status.
Declaration
Swift
var status: AnimationStatus { get }
-
Progress of the animation. From 0 to 100.
Declaration
Swift
var progress: Int { get }
-
Tells whether the animation matches some configuration.
Mandatory parameters are matched exactly to the corresponding animation current parameters. Optional parameters that have been forcefully customized in the provided configuration are matched exactly to the corresponding animation current parameters. Optional parameters that have been left to their defaults in the provided configuration are not matched.
Declaration
Swift
func matches(config: AnimationConfig) -> Bool
Parameters
config
configuration to match this animation against
Return Value
true
if the animation matched the given configuration,false
otherwise