Comment

Comment by skurilyak

For iOS compatibility, consider this architecture:

- Swift UI layer for Apple-compliant UI/UX

- Zig core library (as XCFramework) for watch communication

- Data processing WebAssembly runtime for watchface interpretation

This avoids Pebble's original JS compiler workaround while still enabling customizable watchfaces within Apple's restrictions

The WASM engine stays within App Store guidelines by interpreting watchfaces as data rather than executable code

TL;DR to avoid this:

iOS App (Swift UI) <-> Zig Core Library (XCFramework) <-> WebAssembly Runtime (for watchfaces)

parent skurilyak 1 year ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton