NVActivityIndicatorView Documentation

repository·master·Indexed 27 days ago

https://github.com/ninjaprox/nvactivityindicatorview

A collection of highly customizable loading animations for iOS applications. Supports installation via CocoaPods, Carthage, and Swift Package Manager. Features 32 different animation types, including ballPulse, cubeTransition, and audioEqualizer, and can be initialized via Storyboard or code.

Tokens
570
Snippets
1
Records
5
Agent score
45%

What's inside NVActivityIndicatorView

  1. Initialize NVActivityIndicatorView

    master

    You can initialize NVActivityIndicatorView in two ways:

    1. Via Storyboard: Change the class of any UIView to NVActivityIndicatorView. Ensure you set the Module to NVActivityIndicatorView.
    2. Via Code: Use the initializer. All parameters except frame are optional and use NVActivityIndicatorView.DEFAULT_* values by default.

    Required import: import NVActivityIndicatorView.

  2. Install NVActivityIndicatorView

    master

    You can install NVActivityIndicatorView using CocoaPods, Carthage, or Swift Package Manager.

    ### Cocoapods
    ```ruby
    pod 'NVActivityIndicatorView'

    Carthage

    github "ninjaprox/NVActivityIndicatorView"

    Swift Package Manager

    dependencies: [
        .package(url: "https://github.com/ninjaprox/NVActivityIndicatorView.git")
    ]
  3. Configure NVActivityIndicatorView properties

    master

    All properties of NVActivityIndicatorView are public and can be changed after initialization. If using Storyboard, properties can be adjusted in the Attributes inspector.

    Important: All property changes must be made before calling startAnimating() to ensure they take effect correctly.

  4. Available Animation Types

    master

    When initializing or configuring the view, you can choose from the following animation types (use case-insensitive strings for storyboard configuration):

    1. ballPulse
    2. ballGridPulse
    3. ballClipRotate
    4. squareSpin
    5. ballClipRotatePulse
    6. ballClipRotateMultiple
    7. ballPulseRise
    8. ballRotate
    9. cubeTransition
    10. ballZigZag
    11. ballZigZagDeflect
    12. ballTrianglePath
    13. ballScale
    14. lineScale
    15. lineScaleParty
    16. ballScaleMultiple
    17. ballPulseSync
    18. ballBeat
    19. lineScalePulseOut
    20. lineScalePulseOutRapid
    21. ballScaleRipple
    22. ballScaleRippleMultiple
    23. ballSpinFadeLoader
    24. lineSpinFadeLoader
    25. triangleSkewSpin
    26. pacman
    27. ballGridBeat
    28. semiCircleSpin
    29. ballRotateChase
    30. orbit
    31. audioEqualizer
    32. circleStrokeSpin