Compose Multiplatform 1.13: Content-Based Sizing in SwiftUI/UIKit, iOS Password Autofill and WebGL Interop
JetBrains has published the Compose Multiplatform 1.13 notes: content-based view sizing for SwiftUI and UIKit, partial iOS password autofill, and experimental WebGL support.
This article was prepared with AI assistance from the official sources listed below, and checked automatically before publication.

JetBrains has published the "What's new" page for Compose Multiplatform 1.13 in the Kotlin Multiplatform Help, with a build stamp of 27 November 2026. The page title still reads 1.13.0-rc01, so the details may change before the final release. This update stabilises several APIs, adds content-based size measurement for native iOS apps, and introduces experimental features on the web side.
What has changed
According to JetBrains, several features that were previously Experimental are now Stable and no longer require opt-in:
- creating
ComposeUIView()on iOS withComposeUIViewportConfiguration; - configuring
ComposeViewport()for the web throughComposeViewportConfiguration; - the
preloadAPI for loading web resources earlier.
Other highlights of this release include faster desktop startup with AppCDS or AOT options. In a benchmark on a small demo app, the AotPrebuild mode cut cold start on macOS (M1 Ultra) from 2017 ms to 424 ms. JetBrains stresses that results depend on the application and the environment.
Content-based sizing in SwiftUI and UIKit
Compose views embedded in SwiftUI or UIKit layouts can now report their preferred size based on the available space. Native containers can use this, for example, to adjust a view's height for a fixed width, or the other way round.
Technical points:
- The default strategy is
PreferredSizeReportingStrategy.SizeThatFits. - In UIKit, no additional size configuration is needed.
- In SwiftUI on iOS 16 or later, keep the default value.
- For older iOS versions in SwiftUI, use
PreferredSizeReportingStrategy.IntrinsicContentSizeand provide the sizing proposal manually.
Saving and autofilling passwords on iOS
Compose Multiplatform can now show the native iOS prompt to save login credentials and autofill Compose text fields. However, JetBrains notes a known issue: this feature is only partially available in 1.13.0, with full support promised in 1.13.1.
For iOS to recognise a form as a login form, the username and password fields must remain visible on screen. The example in the documentation uses a TextField for the email and a SecureTextField for the password in a single Column.
Web: WebGL interop and other features
For the web, an experimental API is available for integrating WebGL graphics into the Compose UI. At its core is WebGLRenderTarget, a render-to-texture target that Compose can display. This API can be used for custom shader effects, animations, or existing JavaScript renderers such as three.js for 3D scenes.
This release also adds:
- support for system window insets on the web through
WindowInsets, enabled withenableBrowserWindowInsets = trueandviewport-fit=coverin the viewport meta tag; - a fallback font that can be configured via
fontFallbackUrl. By default the font is downloaded from Google Fonts, and the automatic download can be turned off with the valuenull.
Implications for teams in Indonesia
Teams that use Kotlin Multiplatform to share Android and iOS UI now have a tidier way to insert Compose screens into existing SwiftUI/UIKit apps, without relying on fixed sizes. Native password autofill is relevant for banking, e-commerce and public service apps that depend on login flows.
Sensible practical steps:
- Plan the password autofill feature around 1.13.1 and do not rely on it fully in 1.13.0.
- Test sizing across different iOS versions, especially if you still support iOS versions before 16.
- Treat WebGL interop as experimental and test it thoroughly before going into production.
- Watch for the final release, as the source page is still labelled 1.13.0-rc01.
- If you use desktop, evaluate the AOT option with JetBrains Runtime 25 as recommended by JetBrains.
Sources & references
This article is a summary and interpretation by the Oemah Solution team of the sources below. Refer to the original sources for full details and context.
