NVActivityIndicatorView

Activity indicator view with nice animations

  • Default type. Default value is .BallSpinFadeLoader.

  • Default color of activity indicator. Default value is UIColor.white.

  • Default color of text. Default value is UIColor.white.

  • Default padding. Default value is 0.

  • Default size of activity indicator view in UI blocker. Default value is 60x60.

  • Default display time threshold to actually display UI blocker. Default value is 0 ms.

    Note

    Default time that has to be elapsed (between calls of startAnimating() and stopAnimating()) in order to actually display UI blocker. It should be set thinking about what the minimum duration of an activity is to be worth showing it to the user. If the activity ends before this time threshold, then it will not be displayed at all.
  • Default minimum display time of UI blocker. Default value is 0 ms.

    Note

    Default minimum display time of UI blocker. Its main purpose is to avoid flashes showing and hiding it so fast. For instance, setting it to 200ms will force UI blocker to be shown for at least this time (regardless of calling stopAnimating() ealier).
  • Default message displayed in UI blocker. Default value is nil.

  • Default message spacing to activity indicator view in UI blocker. Default value is 8.

  • Default font of message displayed in UI blocker. Default value is bold system font, size 20.

  • Default background color of UI blocker. Default value is UIColor(red: 0, green: 0, blue: 0, alpha: 0.5)

  • Default fade in animation.

  • Default fade out animation.

  • Animation type.

  • Color of activity indicator view.

  • Padding of activity indicator view.

  • Current status of animation, read-only.

  • Returns an object initialized from data in a given unarchiver. self, initialized using the data in decoder.

  • Create a activity indicator view.

    Appropriate NVActivityIndicatorView.DEFAULT_* values are used for omitted params.

  • Returns the natural size for the receiving view, considering only properties of the view itself.

    A size indicating the natural size for the receiving view based on its intrinsic properties.

  • Start animating.

  • Stop animating.