Contents

DevLiuSir/LCActivityIndicator

This is a portable framework with many preset loading indicators created using SwiftUI!

Usage

public enum LCIndicatorType {
    case `default`(count: Int)
    case threeBallsRotation(Color, size: CGFloat)
    case threeBallsTriangle(Color, size: CGFloat)
    case threeBallsBouncing(Color, size: CGFloat, speed: CGFloat)
    case doubleHelix(Color, size: CGFloat, count: Int)
    case arcs(count: Int, lineWidth: CGFloat)
    case rotatingDots(count: Int)
    case flickeringDots(count: Int)
    case scalingDots(count: Int, spacing: Int)
    case audioWaveEqualizer(Color, count: Int)
    case equalizer(count: Int)
    case growingArc(Color, lineWidth: CGFloat)
    case pulseCircle
    case accordion(count: Int)
    case gradient(colors: [Color], lineCap: CGLineCap, lineWidth: CGFloat)
}
  • Default type, passing the number of points
LCActivityIndicator(isVisible: $isAnimate, type: .default(count: 8))
  • Three points rotating animation
LCActivityIndicator(isVisible: $isAnimate, type: .threeBallsRotation(.black, size: 50))
  • Three points forming a triangle rotating animation
LCActivityIndicator(isVisible: $isAnimate, type: .threeBallsTriangle(.black, size: 50))
  • Three points bouncing vertically
LCActivityIndicator(isVisible: $isAnimate, type: .threeBallsBouncing(.black, size: 50, speed: 0.5))
  • Double helix animation
LCActivityIndicator(isVisible: $isAnimate, type: .doubleHelix(.black, size: 150, count: 10))
  • Arc-shaped indicator, creating multiple arcs
LCActivityIndicator(isVisible: $isAnimate, type: .arcs(count: 3, lineWidth: 2))
  • Rotating dot indicator, multiple dots rotating
LCActivityIndicator(isVisible: $isAnimate, type: .rotatingDots(count: 5))
  • Flickering dot indicator, dots flickering in change
LCActivityIndicator(isVisible: $isAnimate, type: .flickeringDots(count: 8))
  • Scaling dot indicator, dots scaling in and out
LCActivityIndicator(isVisible: $isAnimate, type: .scalingDots(count: 3, spacing: 2))
  • Music waveform equalizer, dynamic equalizer based on sound frequencies
LCActivityIndicator(isVisible: $isAnimate, type: .audioWaveEqualizer(.black, count: 6))
  • Equalizer indicator, showing dynamic bars like audio frequencies
LCActivityIndicator(isVisible: $isAnimate, type: .equalizer(count: 6))
  • Growing arc indicator, arcs growing continuously
LCActivityIndicator(isVisible: $isAnimate, type: .growingArc(.black, lineWidth: 10))
  • Pulse circle indicator, the circle changes over time
LCActivityIndicator(isVisible: $isAnimate, type: .pulseCircle)
  • Accordion indicator, multiple bars bouncing at different heights
LCActivityIndicator(isVisible: $isAnimate, type: .accordion(count: 5))
  • Gradient indicator, circular gradient effect
LCActivityIndicator(isVisible: $isAnimate, type: .gradient(colors: [.white, .black], lineCap: .round, lineWidth: 10))

Install

SwiftPackage

Add https://github.com/DevLiuSir/LCActivityIndicator.git in the “Swift Package Manager” tab in Xcode.

License

MIT License

Copyright (c) 2025 Marvin

Author

| <img src="https://avatars2.githubusercontent.com/u/11488337?s=460&v=4" width="120px;"/> | DevLiuSir<br/><br/><sub>Software Engineer</sub><br/> [<img align="center" src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/twitter.svg" height="20" width="20"/>][1] [<img align="center" src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" height="20" width="20"/>][2] [<img align="center" src="https://raw.githubusercontent.com/iconic/open-iconic/master/svg/globe.svg" height="20" width="20"/>][3]| | :------------: | :------------: |

[1]: https://twitter.com/LiuChuan_ [2]: https://github.com/DevLiuSir [3]: https://devliusir.com/

Package Metadata

Repository: DevLiuSir/LCActivityIndicator

Stars: 2

Forks: 0

Open issues: 0

Default branch: main

Primary language: swift

License: MIT

Topics: aniamtion, cocoapods, loading-animations, loading-spinner, macos, swift, swiftpackage

README: README.md