kractivityindicatorview

### Description

KrActivityIndicatorView is a lightweight and easy-to-use activity indicator for iOS, written in Swift. It provides a visually appealing loading animation that is customizable and can be easily integrated into your iOS app. This documentation will guide you through the installation, usage, and customization options of KrActivityIndicatorView.

### Installation

To integrate KrActivityIndicatorView into your project using CocoaPods, add the following line to your Podfile:

“`
pod ‘KrActivityIndicatorView’
“`

Then run the `pod install` command in your terminal.

### Usage

1. Import the KrActivityIndicatorView module in your view controller:

“`swift
import KrActivityIndicatorView
“`

2. Create a KrActivityIndicatorView instance and add it to your view:

“`swift
let activityIndicatorView = KrActivityIndicatorView(frame: CGRect(x: 0, y: 0, width: 40, height: 40))
self.view.addSubview(activityIndicatorView)
“`

3. Start and stop the activity indicator as needed:

“`swift
activityIndicatorView.startAnimating()
“`

“`swift
activityIndicatorView.stopAnimating()
“`

### Customization

KrActivityIndicatorView provides several customization options to suit your app’s design:

1. Change the color of the activity indicator:

“`swift
activityIndicatorView.color = UIColor.red
“`

2. Adjust the animation speed:

“`swift
activityIndicatorView.speed = 0.8
“`

3. Set the thickness of the activity indicator:

“`swift
activityIndicatorView.thickness = 2.0
“`

4. Adjust the radius of the activity indicator:

“`swift
activityIndicatorView.radius = 20
“`

### Notes

– KrActivityIndicatorView supports both light and dark mode automatically.
– You can adjust the position and size of the activity indicator by modifying the `frame` property.

### Conclusion

Congratulations! You have successfully integrated and customized KrActivityIndicatorView into your iOS app. Now you can provide a visually appealing loading animation to enhance user experience.

For more details and advanced customization options, refer to the [GitHub repository](https://github.com/krimpedance/KrActivityIndicatorView) of KrActivityIndicatorView.