Skip to main content

Tutorials

Welcome to the Zylix tutorials. Choose your platform and follow a complete, end-to-end guide from setup to running your first app.

Choose a Platform
#

What You Will Build
#

A simple counter app that demonstrates state, events, and UI updates across Zylix platforms.

Before You Start
#

See Getting Started for global prerequisites and project overview.

watchOS Tutorial

·1 min
Overview # Run the watchOS counter demo with SwiftUI and the C ABI bridge. Status # In Development — minimal counter implementation. Prerequisites # macOS 13+ Xcode 15+ (watchOS SDK) Zig 0.15+ 1. Clone the Repo # git clone https://github.com/kotsutsumi/zylix.git cd zylix 2. Build Zylix Core for watchOS # cd core zig build watchos-sim This produces core/zig-out/watchos-simulator/libzylix.a.

Windows Tutorial

·1 min
Overview # Run the WinUI 3 demo app on Windows. Prerequisites # Windows 10 1809+ or Windows 11 Visual Studio 2022 .NET 8 SDK Windows App SDK Zig 0.15+ 1. Clone the Repo # git clone https://github.com/kotsutsumi/zylix.git cd zylix 2. Build the Zig Core # cd core zig build windows-x64 -Doptimize=ReleaseFast 3. Build and Run the App # cd ../platforms/windows # Open Zylix/Zylix.csproj in Visual Studio Run the app from Visual Studio (F5).

Linux Tutorial

·1 min
Overview # Run the GTK4 Todo/Counter demos on Linux. Prerequisites # GTK 4.0+ GCC or Clang pkg-config Make 1. Clone the Repo # git clone https://github.com/kotsutsumi/zylix.git cd zylix 2. Build the GTK App # cd platforms/linux/zylix-gtk make 3. Run # make run-counter # or make run-todo 4. Confirm State Updates # Use the counter buttons or add a Todo item and verify the UI updates.

macOS Tutorial

·1 min
Overview # Run the macOS SwiftUI demo app and explore the Todo flow. Prerequisites # macOS 13+ Xcode 16+ XcodeGen 1. Clone the Repo # git clone https://github.com/kotsutsumi/zylix.git cd zylix 2. Generate the Xcode Project # cd platforms/macos xcodegen generate 3. Build and Run # open Zylix.xcodeproj Run the Zylix scheme in Xcode.

Android Tutorial

·1 min
Overview # Build the Zylix demo app with Jetpack Compose and JNI on Android. Prerequisites # Android Studio Android SDK (API 26+) Android NDK r25+ 1. Clone the Repo # git clone https://github.com/kotsutsumi/zylix.git cd zylix 2. Build the Zig Core (Android ABIs) # cd core zig build android -Doptimize=ReleaseFast 3. Copy the Libraries # cp zig-out/android/arm64-v8a/libzylix.so ../platforms/android/zylix-android/src/main/jniLibs/arm64-v8a/ cp zig-out/android/armeabi-v7a/libzylix.so ../platforms/android/zylix-android/src/main/jniLibs/armeabi-v7a/ cp zig-out/android/x86_64/libzylix.so ../platforms/android/zylix-android/src/main/jniLibs/x86_64/ cp zig-out/android/x86/libzylix.so ../platforms/android/zylix-android/src/main/jniLibs/x86/ 4. Build and Run # cd ../platforms/android ./gradlew installDebug 5. Confirm State Updates # Open the app and use the counter controls. State updates should be immediate.

iOS Tutorial

·1 min
Overview # Build the Zylix demo app with SwiftUI and the C ABI bridge on iOS. Prerequisites # macOS 12+ Xcode 14+ XcodeGen 1. Clone the Repo # git clone https://github.com/kotsutsumi/zylix.git cd zylix 2. Build the Zig Core # cd platforms/ios ./build-zig.sh This produces platforms/ios/lib/libzylix.a.

Web/WASM Tutorial

·1 min
Overview # Build and run the Zylix counter app in your browser using WebAssembly. Prerequisites # Zig 0.15+ A modern browser 1. Clone the Repo # git clone https://github.com/kotsutsumi/zylix.git cd zylix 2. Build the Web Sample # cd samples/counter-wasm ./build.sh This builds samples/counter-wasm/zylix.wasm and uses samples/counter-wasm/zylix.js as the JS bridge.