HorizontalPanoramaAnimationConfig

@objcMembers
@objc(GSHorizontalPanoramaAnimationConfig)
public class HorizontalPanoramaAnimationConfig : NSObject, AnimationConfig

Horizontal panorama animation configuration class.

Allows to configure the following parameters for this animation:

  • rotation angle: angle of the rotation the drone should perform, in degrees. Positive values make the drone rotate clockwise, negative values make it rotate counter-clockwise. Absolute value may be greater than 360 degrees to perform more than one complete rotation. If with(rotationAngle:) is not called, then the drone will apply its own default value for this parameter.
  • rotation speed: angular speed of the rotation, in degrees per second. If with(rotationSpeed:) is not called, then the drone will apply its own default value for this parameter.
  • Declaration

    Swift

    public let type: AnimationType
  • 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 }
  • Configures a custom rotation angle.

    Declaration

    Swift

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

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

    Parameters

    rotationSpeed

    custom rotation speed, in degrees per second

    Return Value

    self, to allow call chaining