native swiftui activity visuals for ios and macos. eleven styles, two tuned sizes, custom color, reduce motion, voiceover, and zero dependencies.
add this repository as a swift package and link the ActivityGlyph product.
import ActivityGlyph
ActivityGlyph(style: .scan, size: .standard)ActivityGlyph(
style: .insight,
size: .inline,
appearance: .automatic,
speed: 1.2,
palette: .tint(ActivityGlyphColor(hex: 0x7C3AED))
)set one palette for a full view tree:
ContentView()
.activityGlyphPalette(.tint(ActivityGlyphColor(hex: 0x007AFF)))styles: orbit, scan, resolve, signal, network, weave, compose,
pulse, transform, focus, insight.
sizes: standard at 64 pt and inline at 20 pt.
open Examples/ActivityGlyphDemo/ActivityGlyphDemo.xcodeproj.
ActivityGlyphiOSDemo— ios and ipadosActivityGlyphMacDemo— macos
ios 15+, macos 12+ for the library, macos 13+ for the demo, swift 5.9+, and xcode 15+.
swift test