{"repo":"mana-am/matrix-swift","free":true,"listed":false,"github":"https://github.com/mana-am/matrix-swift","clone":"git clone https://github.com/mana-am/matrix-swift.git","description":"Animated dot-matrix loading indicators for SwiftUI — 100+ deterministic dot loaders, zero assets, zero dependencies. A faithful Swift port of zzzzshawn/matrix.","language":"Swift","stars":154,"topics":["activity-indicator","animation","dot-matrix","ios","loader","loading-indicator","spinner","spm","swift","swift-package"],"license":null,"category":"mobile-apps","readme_excerpt":"Matrix Animated dot-matrix loading indicators for SwiftUI. 100+ deterministic, pattern-driven dot loaders that render as tiny animated grids — a faithful Swift/SwiftUI port of the zzzzshawn/matrix loader collection. They power the chat \"thinking\" states in Mana, an AI-first creation studio for iOS. When to use - You want a compact, lively loading indicator — chat \"thinking\", tool activity, inline spinners — that reads as a hand-tuned dot grid, not a stock spinner. - You want deterministic selection: the same key always lands on the same loader, so loaders don't visibly reshuffle as SwiftUI rebuilds views on scroll. - You want a big, varied catalog (Square, Circular, Hex, Fun, 3×3, Triangle, Icon) behind one drop-in view. Installation Add the package in Xcode ( File ▸ Add Package Dependencies… ) or in your Package.swift : Then add Matrix to your target's dependencies and import Matrix . Quick start There are two equivalent ways to use a loader — pick whichever reads better. 1. Named component (1:1 with the upstream React library — ): Every loader is its own View : DotmSquare1…23 , DotmCircular1…20 , DotmHex1…10 , DotmTriangle1…20 , Dotm3x3 1…21 , the Fun set ( DotmFunHeart , DotmFunArrow , DotmFunSparkle , …), and DotMatrixIcon . Each takes the same ergonomic init: (size:color:speed:dotSize:muted:bloom:halo:) . 2. Shape id (one view, parameterized — handy for pickers / random / storing a choice): Index ranges: square 1…23 · circular 1…20 · hex 1…10 · grid3 1…16 & 18…21 · trian","default_branch":null,"files":null,"tree":[],"storefront":"/r/mana-am","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mana-am/matrix-swift/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}