PositionTwistUpAnimationConfig

@objcMembers
@objc(GSPositionTwistUpAnimationConfig)
public class PositionTwistUpAnimationConfig : NSObject, AnimationConfig

Position 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) -> PositionTwistUpAnimationConfig

    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) -> PositionTwistUpAnimationConfig

    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) -> PositionTwistUpAnimationConfig

    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) -> PositionTwistUpAnimationConfig

    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) -> PositionTwistUpAnimationConfig

    Parameters

    mode

    custom execution mode

    Return Value

    self, to allow call chaining