Compose Multiplatform 1.13.0 Adds Content-Based Sizing for SwiftUI and UIKit, WebGL Interop and Faster Desktop Startup
JetBrains released Compose Multiplatform 1.13.0 with improvements for iOS, web and desktop. The update adds content-based sizing for embedded Compose views, experimental WebGL interoperability and AppCDS or AOT caching to speed up desktop app launches.

TL;DR
- Compose Multiplatform 1.13.0 lets Compose views in SwiftUI and UIKit size themselves to their content.
- A new experimental WebGL API lets Compose UI share a canvas-like texture with WebGL code, including three.js.
- Desktop apps can use AppCDS or AOT caching to start faster, with one benchmark showing cold starts up to 4.8× faster.
Native layouts can size Compose content
Until now, Compose views embedded in SwiftUI and UIKit layouts were typically given fixed dimensions. Version 1.13.0 changes this: an embedded view can report its preferred size based on the space available to it. JetBrains says this suits content such as wrapping text or expanding controls, because the surrounding native layout can resize the Compose view instead of relying on hard-coded values. Developers who build hybrid iOS screens will find the change most relevant, and JetBrains points to its sizing guides for SwiftUI and UIKit for implementation details.
An experimental WebGL bridge for web apps
The release also adds an experimental WebGL interoperability API. It lets developers draw into a texture using a WebGL context that is shared with Compose, and then display that result next to Compose UI. JetBrains says this works with content from JavaScript renderers such as three.js, which makes it possible to bring custom graphics, shader effects or 3D scenes into a Compose-based web app. Because the API is marked experimental, teams should expect it to change before it is stable.
Faster desktop startup with AppCDS and AOT
Desktop applications can now use AppCDS (Application Class Data Sharing, a JVM feature that caches loaded class metadata) or AOT (ahead-of-time compilation, which prepares code before it runs). The mode you pick determines whether the gain shows up on the first launch or on later launches, and it can also speed up the first use of specific features. JetBrains reports that in benchmarks on a small demo application, the AotPrebuild mode made cold starts up to 4.8× faster. It is enabled with an aot block in the compose.desktop section of build.gradle.kts. The benchmark was run on a small demo app, so results for larger applications may differ.
Jetpack Compose updates included
Version 1.13.0 also brings in changes from Jetpack Compose 1.13. These include a move to the state-based BasicTextField and stable FlexBox, Grid and LazyLayoutCacheWindow APIs. Teams that already use these Jetpack Compose APIs in shared code should check their usage after updating their dependencies. JetBrains's full changelog covers the remaining items, which are available in the release notes on GitHub.
Why it matters
For teams building iOS apps with embedded Compose, content-based sizing removes a common reason to hard-code dimensions, though it needs testing across screen sizes. Web teams get a documented path to combine WebGL rendering with Compose UI, but should treat the API as experimental. Desktop teams can measure whether AppCDS or AOT caching improves their own cold start times before adopting it, since the published 4.8× figure comes from a small demo. Anyone updating to 1.13.0 should review the Jetpack Compose 1.13 API changes, particularly the BasicTextField move, as part of the upgrade.
Sources
This article was written by Blozhik from the reporting below. Read the originals for full detail.
JeCompose Multiplatform 1.13.0 ReleasedJetBrains Blog

