AnimationElement
public enum AnimationElement
The element of animation that used to describe the animation properties you want to set.
-
Sets the type of the animation.
Declaration
Swift
case type(AnimationType) -
Attach this animation to the specific UIKit view.
Declaration
Swift
case view(UIView?) -
Specifies the amount of time (measured in seconds) to wait before beginning the animations.
Declaration
Swift
case delay(Float) -
Specifies the basic duration of the animation, in seconds.
Declaration
Swift
case duration(Float) -
Determines the number of times the animation will repeat.
Declaration
Swift
case repeatCount(Int) -
Sets a Boolean value that controls whether that repeats this animation forever.
Declaration
Swift
case repeatForever(Bool) -
Determines if the animation plays in the reverse upon completion.
Declaration
Swift
case autoReverse(Bool) -
Sets an optional timing function defining the pacing of the animation.
Declaration
Swift
case timingFunc(AnimationTimingFunc) -
Defines the value the animation uses to start interpolation.
Declaration
Swift
case from(AnimationValue) -
Defines the value the animation uses to end interpolation.
Declaration
Swift
case to(AnimationValue) -
Defines the float value the animation uses to start interpolation.
Declaration
Swift
public static func from(_ v1: Float) -> AnimationElementParameters
v1The float value the animation uses to end interpolation.
Return Value
Self
-
Defines the point value the animation uses to start interpolation.
Declaration
Swift
public static func from(_ v1: Float, _ v2: Float) -> AnimationElementParameters
v1The x of the point.
v2The y of the point.
Return Value
Self
-
Defines the color value the animation uses to start interpolation.
Declaration
Swift
public static func from(_ v1: Float, _ v2: Float, _ v3: Float, _ v4: Float) -> AnimationElementParameters
v1The red value of the color object. 0~ 255
v2The green value of the color object. 0~ 255
v3The blue value of the color object. 0~ 255
v4The opacity value of the color object, specified as a value from 0.0 to 1.0.
Return Value
Self
-
Defines the color value the animation uses to start interpolation.
Declaration
Swift
public static func from(_ color: UIColor) -> AnimationElementParameters
colorThe color value the animation uses to start interpolation.
Return Value
Self
-
Defines the float value the animation uses to end interpolation.
Declaration
Swift
public static func to(_ v1: Float) -> AnimationElementParameters
v1The float value the animation uses to end interpolation.
Return Value
Self
-
Defines the point value the animation uses to end interpolation.
Declaration
Swift
public static func to(_ v1: Float, _ v2: Float) -> AnimationElementParameters
v1The x of the point.
v2The y of the point.
Return Value
Self
-
Defines the color value the animation uses to end interpolation.
Declaration
Swift
public static func to(_ v1: Float, _ v2: Float, _ v3: Float, _ v4: Float) -> AnimationElementParameters
v1The red value of the color object. 0~ 255
v2The green value of the color object. 0~ 255
v3The blue value of the color object. 0~ 255
v4The opacity value of the color object, specified as a value from 0.0 to 1.0.
Return Value
Self
-
Defines the color value the animation uses to end interpolation.
Declaration
Swift
public static func to(_ color: UIColor) -> AnimationElementParameters
colorThe color value the animation uses to end interpolation.
Return Value
Self
AnimationElement Enumeration Reference