Skip to main content
Anvil2 for iOS ships four Swift libraries. Anvil2Tokens is generated design tokens. Anvil2Icons and Anvil2Illustrations are the generated Lucide allowlist and illustration set. Anvil2Components is SwiftUI components built on those libraries. Requires iOS 17.4 or later and Xcode 26.x. Published releases and changelogs live on anvil2-ios. The hammer package at packages/anvil2-swift is the source of truth; the public mirror is overwritten on each release.

Products

Add the package

In hammer, the sample app depends on the local package path:
Link Anvil2Components to your app target. Link Anvil2Icons or Anvil2Illustrations when the screen uses those assets. Consumers of the published mirror should depend on the anvil2-ios package the same way you add any Swift package, then select the products the app uses.

First component

Anvil2Placeholder is a public View with an empty init(). It renders the text “Anvil2” using Anvil2Tokens.Semantic.Foreground.Color.standard.

Working in hammer

Regenerate tokens and build only when you change this package:
Do not edit Sources/Anvil2Tokens by hand; it is generated from packages/carto-tokens.
Last modified on October 27, 2026