DefaultAnimator

public class DefaultAnimator: UIView

Builtin loading animator.

  • Init

    Declaration

    Swift

    public init(loaderColor: UIColor = UIColor.redColor(), animatorStyle: AnimatorStyle, revealStyle: RevealStyle, reportProgress: Bool)

    Parameters

    loaderColor

    Optional loader color. Default is UIColor.redColor()

    animatorStyle

    Animator loading style. If it’s set to .None reportProgress will be ignored.

    revealStyle

    Choose your favorite style.

    reportProgress

    If report download progress.

    Return Value

    Instance.

  • Please use init(loaderColor:revealStyle:reportProgress:)

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Change frame here. Just ignore.

    Declaration

    Swift

    override public func layoutSubviews()
  • Start loading animation.

    Declaration

    Swift

    public func startAnimation()
  • Remove animations.

    Declaration

    Swift

    public func removeAnimation()
  • Handle progress things.

    Declaration

    Swift

    public func progress(received: Int64, _ total: Int64)

    Parameters

    received

    Received bytes.

    total

    Total bytes.

  • Show image with animation.

    Declaration

    Swift

    public func reveal()
  • This should not be public.

    Declaration

    Swift

    override public func animationDidStop(anim: CAAnimation, finished flag: Bool)