Skip to content

Instantly share code, notes, and snippets.

View Thomas-Vos's full-sized avatar

Thomas Vos Thomas-Vos

View GitHub Profile
@terrakok
terrakok / ComposeTauri.md
Created July 3, 2026 13:53
Compose + Tauri

How to Shrink Your Compose Desktop App by 10x

Screenshot 2026-07-03 at 15-40-24

Standard Compose Multiplatform desktop applications bundle the JVM and Skiko, which can easily push your final installer size past 70MB–100MB.

If you want a sleek, ultra-lightweight desktop app without ditching your Kotlin Compose codebase, there is a brilliant hack: compile your app to WebAssembly (WASM) and wrap it inside Tauri. Tauri leverages the system's native WebView and a lightweight Rust backend, dropping your app's footprint down to just a few megabytes.

@alexvanyo
alexvanyo / EdgeToEdgeAlertDialog.kt
Last active September 17, 2024 01:48
EdgeToEdgeDialogs
/*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@IanKeen
IanKeen / Redraw.swift
Last active February 28, 2023 21:20
PropertyWrapper: Automatically redraw UIViews when a value changes
@propertyWrapper
struct Redraw<Value> {
var wrappedValue: Value
init(wrappedValue: Value) {
self.wrappedValue = wrappedValue
}
static subscript<Instance: UIView>(
_enclosingInstance instance: Instance,