CameraAnimator

public class CameraAnimator : NSObject

Undocumented

  • The state from of the animator.

    Declaration

    Swift

    public var state: UIViewAnimatingState { get }
  • Boolean that represents if the animation is running or not.

    Declaration

    Swift

    public var isRunning: Bool { get }
  • Boolean that represents if the animation is running normally or in reverse.

    Declaration

    Swift

    public var isReversed: Bool { get }
  • A Boolean value that indicates whether a completed animation remains in the active state.

    Declaration

    Swift

    public var pausesOnCompletion: Bool { get set }
  • Value that represents what percentage of the animation has been completed.

    Declaration

    Swift

    public var fractionComplete: CGFloat { get set }
  • Starts the animation.

    Declaration

    Swift

    public func startAnimation()
  • Starts the animation after a delay which is of type TimeInterval.

    Declaration

    Swift

    public func startAnimation(afterDelay delay: TimeInterval)
  • Pauses the animation.

    Declaration

    Swift

    public func pauseAnimation()
  • Stops the animation.

    Declaration

    Swift

    public func stopAnimation()
  • Add animations block to the animator with a delayFactor.

    Declaration

    Swift

    public func addAnimations(_ animations: @escaping () -> Void, delayFactor: CGFloat)
  • Add animations block to the animator.

    Declaration

    Swift

    public func addAnimations(_ animations: @escaping () -> Void)
  • Add a completion block to the animator.

    Declaration

    Swift

    public func addCompletion(_ completion: @escaping AnimationCompletion)
  • Continue the animation with a timing parameter (UITimingCurveProvider) and duration factor (CGFloat).

    Declaration

    Swift

    public func continueAnimation(withTimingParameters parameters: UITimingCurveProvider?, durationFactor: CGFloat)