TwistUpAnimationConfig

@objcMembers
@objc(GSTwistUpAnimationConfig)
public class TwistUpAnimationConfig : NSObject, AnimationConfig

Twist up animation configuration.

  • Declaration

    Swift

    public let type: AnimationType
  • Custom speed, in meters per second. Value is nil if with(speed:) has never been called.

    Declaration

    Swift

    public private(set) var speed: Double? { get }
  • Custom vertical distance, in meters. Value is nil if with(verticalDistance:) has never been called.

    Declaration

    Swift

    public private(set) var verticalDistance: Double? { get }
  • Custom rotation angle, in degrees. Value is nil if with(rotationAngle:) has never been called.

    Declaration

    Swift

    public internal(set) var rotationAngle: Double? { get }
  • Custom rotation speed, in degrees per second. Value is nil if with(rotationSpeed:) has never been called.

    Declaration

    Swift

    public internal(set) var rotationSpeed: Double? { get }
  • Custom execution mode. Value is nil if with(mode:) has never been called.

    Declaration

    Swift

    public private(set) var mode: AnimationMode? { get }
  • Configures a custom animation speed.

    Declaration

    Swift

    @discardableResult
    public func with(speed: Double) -> TwistUpAnimationConfig

    Parameters

    speed

    custom animation speed, in meters per second

    Return Value

    self, to allow call chaining

  • Configures a custom animation vertical distance.

    Declaration

    Swift

    @discardableResult
    public func with(verticalDistance: Double) -> TwistUpAnimationConfig

    Parameters

    verticalDistance

    custom vertical distance, in meters

    Return Value

    self, to allow call chaining

  • Configures a custom rotation angle.

    Declaration

    Swift

    @discardableResult
    public func with(rotationAngle: Double) -> TwistUpAnimationConfig

    Parameters

    rotationAngle

    custom rotation angle, in degrees

    Return Value

    self, to allow call chaining

  • Configures a custom rotation speed.

    Declaration

    Swift

    @discardableResult
    public func with(rotationSpeed: Double) -> TwistUpAnimationConfig

    Parameters

    rotationSpeed

    custom rotation speed, in degrees per second

    Return Value

    self, to allow call chaining

  • Configures a custom animation execution mode.

    Declaration

    Swift

    @discardableResult
    public func with(mode: AnimationMode) -> TwistUpAnimationConfig

    Parameters

    mode

    custom execution mode

    Return Value

    self, to allow call chaining

  • true when with(mode:) has been called once. ObjC-only api. In Swift, use mode.

    Declaration

    Swift

    public var modeIsCustom: Bool { get }
  • Custom mode. Value is meaningless if modeIsCustom is false. ObjC-only api. In Swift, use mode.

    Declaration

    Swift

    public var customMode: AnimationMode { get }