Skip to content

About

Shared Swift core for Desert Ant Labs SDKs: DS.* design tokens, demo components, ModelStore (HuggingFace download + cache).

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

desert-ant-swift

The Desert Ant Labs brand kit for SwiftUI: the bare minimum to put our brand in an app. One product, no dependencies. The mark, all fifteen loaders, the semantic colors, the attribution lockup.

.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-swift", from: "2.0.0")
import DesertAntUI

DA.Mark()                          // the mark on its plate; .inverted and .isolated exist
DA.Loader()                        // the preferred loader, fill-spiral; 14 more variants, .drop to .tetrisClear
DA.Loader(color: DA.Color.sage)    // tinted; without color: it takes the foreground style
DA.Attribution(prefix: "Runs on")  // the credit lockup for your about screen
Text("Ready").foregroundStyle(DA.Color.textPrimary)

The mark and the loader take their color from the environment foreground and size to any frame. The colors resolve light and dark on their own.

DesignTokens.swift is generated by the token build in Desert-Ant-Labs/brand and copied here; the mark geometry and the four mark loaders are hand ports of that repo's mark.js and loader.css, and LoaderData.swift (the eleven grid loaders) is generated from loader.css; the tests pin all of it. The rest of the brand lives at brand.desertant.com.

License

MIT for the code (see LICENSE.md). The Desert Ant Labs name and mark are trademarks; the model license is separate and asks apps that ship our models to credit Desert Ant Labs, which is what DA.Attribution is for.

About

Shared Swift core for Desert Ant Labs SDKs: DS.* design tokens, demo components, ModelStore (HuggingFace download + cache).

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages