ActivityIndicator
  • July 23, 2025

An Elegant And Customizable Pure SwiftUI Activity Indicators.

Examples


RowOfShapes-Code RowOfShaoes
Bars-Code Bars
Code Demo
Arcs-Code Arcs
Blinking-Code Blinking
RotatingShapesCode RotatingShapes

The Demo Code


Just import the library and use the following code as theĀ ContentView

import SwiftUI
import iActivityIndicator

struct ContentView: View {
var body: some View {
VStack(spacing: 24) {

HStack(spacing: 24) {
iActivityIndicator(style: .arcs())
iActivityIndicator(style: .arcs(width: 8))
iActivityIndicator(style: .arcs(count: 10))
}

HStack(spacing: 24) {
iActivityIndicator(style: .bars(opacityRange: 1…1))
iActivityIndicator(style: .bars(scaleRange: 1…1))
iActivityIndicator(style: .bars(count: 3))
}

HStack(spacing: 24) {
iActivityIndicator(style: .blinking())
iActivityIndicator(style: .blinking(count: 4))
iActivityIndicator(style: .blinking(count: 3, size: 50))
}

HStack(spacing: 24) {
iActivityIndicator() // The Default
iActivityIndicator(style: .classic(count: 13, width: 2))
iActivityIndicator(style: .classic(count: 3, width: 50))
}

HStack(spacing: 24) {
iActivityIndicator(style: .rotatingShapes())
iActivityIndicator(style: .rotatingShapes(count: 3, size: 30))
iActivityIndicator(style: .rotatingShapes(content: AnyView(Text(“šŸŽƒ”).fixedSize())))
}

HStack(alignment: .center, spacing: 24) {
iActivityIndicator(style: .rowOfShapes())
iActivityIndicator(style: .rowOfShapes(count: 1, opacityRange: 0…1))
iActivityIndicator(style: .rowOfShapes(count: 3, scaleRange: 0.1…1))
}
}
.padding()
.foregroundColor(.red)
}
}

Ease of Use


Also you can use style as a modifer on theĀ iActivityIndicatorĀ like:

HStack(spacing: 24) {
iActivityIndicator()
.style(.arcs())

iActivityIndicator()
.style(.arcs(width: 8))

iActivityIndicator()
.style(.arcs(count: 10))
}

GitHub


View Github

#uiactivityindicatorview
YOU MIGHT ALSO LIKE...
SwiftSpeech

Recognize your user's voice elegantly without having to figure out authorization and audio engines. SwiftSpeech Examples Features Installation Getting Started ...

SwiftUIValueSlider

Example To run the example project, clone the repo, and runĀ pod installĀ from the Example directory first. Requirements iOS 14.0 Installation ...

Sliders

SlidersĀ is a compilation of all my stylable drag based SwiftUI components. It provides a variety of unique controls as well ...

SlidingRuler

SlidingRulerĀ is a Swift package containing a SwiftUI control that acts like an linear infinite slider or a finite, more precise ...

Skeletonui

SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and ...