Kotlin Multiplatform Help

What's new in Compose Multiplatform 1.13.0

Here are the highlights for this release:

You can find the full list of changes for this release on GitHub.

For details about specific component versions, refer to the Dependencies section. For changes in the AndroidX Compose runtime version included in this release, see the androidx.compose.runtime release notes.

Across platforms

APIs promoted to Stable

Several features that were Experimental in previous Compose Multiplatform releases are now Stable. You no longer need to opt in to use them:

Smaller distribution sizes for web and desktop

With version 1.13.0, Compose Multiplatform makes further optimizations to distribution sizes:

  • For web, the build uses a smaller skiko.wasm runtime, each copy shrinks from 8.6 MB to 7.4 MB.

  • For desktop:

    • Non-target desktop binaries are removed during packaging. For example, macOS arm64 artifacts no longer bundle the x86_64 variant.

    • When using a JRE with bundled fonts for packaging, these fonts are stripped. You can opt out of this by setting stripJreFonts to false in the compose.desktop.application.nativeDistributions {} block of your Gradle configuration.

iOS

Content-based sizing for Compose Multiplatform views in SwiftUI and UIKit

Compose Multiplatform views embedded in SwiftUI or UIKit layouts can now report a preferred size based on the available space. Native containers can use this size to fit Compose content, for example, to adjust a view's height while keeping its width fixed, or vice versa.

Compose Multiplatform views use PreferredSizeReportingStrategy.SizeThatFits by default. In UIKit, you don't need additional sizing configuration.

In SwiftUI, keep this default on devices running iOS 16 or later. For SwiftUI on earlier iOS versions, use PreferredSizeReportingStrategy.IntrinsicContentSize and supply sizing proposals manually.

For setup instructions and examples, see:

Saving and autofilling passwords

On iOS, Compose Multiplatform can now show native prompts to save login credentials and autofill Compose text fields. Keep both the username and password fields on screen so iOS can recognize the form as a login form.

For example, the following code creates a simple login form that enables iOS password saving and autofill:

val email = rememberTextFieldState() val password = rememberTextFieldState() Column { TextField(state = email) SecureTextField(state = password) }

For details, see iOS-specific text input options.

Web

WebGL interop

Compose Multiplatform now offers an experimental API for integrating WebGL graphics into the Compose UI of your web app. Use it to draw custom shader effects and animations, or integrate an existing JavaScript renderer such as three.js to display 3D scenes.

The API introduces WebGLRenderTarget, a target for rendering WebGL graphics into a texture that Compose can display. You draw into this texture using a WebGL context shared with Compose. The rendered graphics appear alongside Compose controls and overlays, and can update on each animation frame. Compose modifiers let you manage and customize how the content is displayed as part of your UI.

For details, see WebGL interoperability.

System window insets on web

Compose Multiplatform for web now supports system window insets through the standard WindowInsets APIs. Your UI can draw edge-to-edge while respecting safe areas, including display cutouts and the on-screen keyboard.

To enable this feature, set enableBrowserWindowInsets to true in your ComposeViewport configuration. Use the standard inset modifiers to adjust the layout:

ComposeViewport(configure = { enableBrowserWindowInsets = true }) { Box(Modifier.fillMaxSize().safeDrawingPadding()) { Text("Content within the safe drawing area") } }

You can also access the insets directly through APIs such as WindowInsets.safeDrawing and WindowInsets.ime.

For edge-to-edge rendering, add viewport-fit=cover to the page's viewport meta tag:

<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />

Configurable font fallback on web

In the previous release, we introduced automatic font fallback for characters not covered by your application's fonts. This release lets you choose the source for fallback fonts or disable automatic downloads.

By default, Compose Multiplatform downloads fallback fonts from Google Fonts. To use a different source, set fontFallbackUrl in the window configuration:

createComposeWindow( configure = { fontFallbackUrl = "https://custom.fonts.com" } ) { BasicText("გამარჯობა") }

To disable automatic font fallback, set fontFallbackUrl to null:

createComposeWindow( configure = { fontFallbackUrl = null } ) { BasicText("გამარჯობა") }

Desktop

Faster desktop startup with AppCDS or AOT

Compose Multiplatform now supports Application Class-Data Sharing (AppCDS) and Ahead-of-Time (AOT) caching for desktop applications. Both options use an archive to reduce startup time.

In benchmarks on a small demo application, AotPrebuild mode reduced startup time compared with no AOT:

Platform

Cold start

Warm start (second run)

macOS (M1 Ultra)

2017 ms → 424 ms (4.8× faster)

936 ms → 437 ms (2.1× faster)

Windows (Dell Precision 5690)

1356 ms → 650 ms (2.1× faster)

1330 ms → 656 ms (2.0× faster)

These measurements cover the time from launching the process to displaying the window. Results depend on the application and environment. For AOT startup optimization, we recommend the latest JetBrains Runtime (JBR) 25 release.

To enable the startup options, configure the aot {} block in your build.gradle.kts file:

compose.desktop { application { aot { mode = AotMode.AotPrebuild } } }

For available modes, JDK requirements, and training runs, see Improving startup time with AppCDS and AOT.

Smoother window resizing on macOS and Windows

Compose Multiplatform now supports smoother interactive window resizing when using Metal on macOS or DirectX on Windows. Rendering stays synchronized with window resizing, reducing stutter and preventing white bars along the window edges.

To enable this behavior, set the system property for your renderer to true before showing any windows. Set it with System.setProperty() or a JVM -D flag:

  • macOS with Metal: skiko.rendering.macos.metalSynchronousLiveResize

  • Windows with DirectX: skiko.rendering.windows.direct3DSynchronousLiveResize

The feature requires Compose content to fill the entire window.

Dependencies

Library

Maven coordinates

Based on Jetpack version

Runtime

org.jetbrains.compose.runtime:runtime*:1.13.0

Runtime 1.13.0

UI

org.jetbrains.compose.ui:ui*:1.13.0

UI 1.13.0

Foundation

org.jetbrains.compose.foundation:foundation*:1.13.0

Foundation 1.13.0

Material

org.jetbrains.compose.material:material*:1.13.0

Material 1.13.0

Material3

org.jetbrains.compose.material3:material3*:1.13.0

Material3 1.5.0

Material3 Adaptive

org.jetbrains.compose.material3.adaptive:adaptive*:1.4.0-alpha01

Material3 Adaptive 1.4.0-alpha03

Lifecycle

org.jetbrains.androidx.lifecycle:lifecycle-*:2.11.0

Lifecycle 2.11.0

Navigation

org.jetbrains.androidx.navigation:navigation-*:2.10.0

Navigation 2.10.0

Navigation3

org.jetbrains.androidx.navigation3:navigation3-*:1.2.0

Navigation3 1.2.0

Navigation Event

org.jetbrains.androidx.navigationevent:navigationevent-compose:1.1.0

Navigation Event 1.1.1

Savedstate

org.jetbrains.androidx.savedstate:savedstate*:1.4.0

Savedstate 1.4.0

WindowManager Core

org.jetbrains.androidx.window:window-core:1.5.1

WindowManager 1.5.1

01 December 2026