Skip to content

0.1.0

Choose a tag to compare

@ignsm ignsm released this 20 Oct 11:11
· 21 commits to main since this release
26cc9b3

First release of formhaus for Swift. It runs formhaus JSON form definitions natively on iOS and macOS with the same engine rules as @formhaus/core 0.22.0.

Install

.package(url: "https://github.com/formhaus-dev/formhaus-swift.git", from: "0.1.0")

Requires Swift 6.2, iOS 17 or macOS 14.

What is included

  • FormhausCore: the form engine, definition checks, server validation with validateSubmission, answer recall, translations, and a native ECMAScript regular expression engine. No dependencies.
  • FormhausUI: a SwiftUI renderer with three ways to draw a form:
    • the formhaus component set, matching the web look,
    • FormComponents.system, a native iOS grouped form,
    • your own components through the registry.
  • Theme generated from the formhaus design tokens, with light, dark and Increase Contrast palettes.
  • VoiceOver labels, Dynamic Type and 44 pt touch targets in the built-in sets, checked by tests.

Compatibility

Passes the full conformance suite of @formhaus/core 0.22.0: every corpus fixture and engine scenario.

Before 1.0

The API can change between minor versions until 1.0. Differences from the TypeScript packages are listed in the README.