ActivityIndicator


super: UIActivityIndicatorView on iOS

Use an activity indicator to show that a task is in progress. An activity indicator appears as a "gear" that is either spinning or stopped.

ActivityIndicator

Events

  • Load() This event is called when the object becames available in the current runtime system.

  • Unload() This event is called when the object has been removed from the current runtime system (but not yet deallocated).

Properties

  • var color: Color The color of the activity indicator.

  • var style: ActivityIndicatorStyle The basic appearance of the activity indicator.

  • var hidesWhenStopped: Bool A Boolean value that controls whether the receiver is hidden when the animation is stopped.

Methods

  • func startAnimating() Starts the animation of the activity indicator.

  • func stopAnimating() Stops the animation of the activity indicator.

  • func isAnimating(): Bool Returns true if the animation is active, false if it isn't.

  • func animate(duration: Float, delay: Float, options: AnimationOption, closure: Closure, completion: Closure) Animate changes to one or more views using the specified duration, delay, options and completion handler.

    Enumeration

      ActivityIndicatorStyle

      • .Gray
      • .White
      • .WhiteLarge


      AnimationOption

      • .AllowAnimatedContent
      • .AllowUserInteraction
      • .Autoreverse
      • .BeginFromCurrentState
      • .CurveEaseIn
      • .CurveEaseInOut
      • .CurveEaseOut
      • .CurveLinear
      • .LayoutSubviews
      • .OverrideInheritedCurve
      • .OverrideInheritedDuration
      • .OverrideInheritedOptions
      • .Repeat
      • .ShowHideTransitionViews
      • .TransitionCrossDissolve
      • .TransitionCurlDown
      • .TransitionCurlUp
      • .TransitionFlipFromBottom
      • .TransitionFlipFromLeft
      • .TransitionFlipFromRight
      • .TransitionFlipFromTop
      • .TransitionNone