Skip to content

AppClipCode 1.0.0

Latest

Choose a tag to compare

@realbub realbub released this 16 Jun 16:09

First release of AppClipCode — a pure-Swift port of Apple's App Clip Code generator.

Generates App Clip Code SVGs from https:// URLs, byte-for-byte identical to Apple's AppClipCodeGenerator for accepted URLs.

Features

  • URL compression (multi-context Huffman + host/TLD tables + path/query grammar) → 16-byte payload
  • Reed–Solomon error correction (GF(16)/GF(256)), gap inversion, 128-bit LUT permutation
  • Byte-exact 5-ring SVG rendering, 18 color templates, camera/NFC logos
  • Zero external dependencies; iOS 13+, macOS 11+, tvOS, watchOS

Validation

Matches Apple byte-for-byte: 94/94 Apple compression vectors, 126/126 Apple SVG fixtures, plus 4,755 + 24,480 differential cases vs the Go reference. Build verified on iOS Simulator and device.

Install (SwiftPM)

.package(url: "https://github.com/orklabs/appclipcodes", from: "1.0.0"),
.product(name: "AppClipCode", package: "appclipcodes"),

Ported from rs/appclipcode (MIT). Independent, unofficial, not affiliated with Apple.