Repository navigation
Changes since 1.12.2
Highlights
Desktop
Web
ComposeViewportConfigurationis no longer experimental #3300preloadFont,preloadImageBitmap,preloadImageVectorare no longer experimental #5711
Breaking Changes
Gradle Plugin
- Deleted deprecated Compose Gradle Plugin API:
compose.web.targets(...)#5685
Migration Notes
Multiple Platforms
- Skottie is no longer included in the Skiko core binary and is no longer bundled with Compose Multiplatform. To continue using Skottie, add
org.jetbrains.skiko:skiko-skottietocommonMain. If your project targets desktop, also addorg.jetbrains.skiko:skiko-skottie-awt-runtime-alltodesktopMain#3234 - Removed
ComposeUiFlags.useLegacyRenderNodeLayersflag used to revert legacy (pre 1.8) render node layers for cases withoutandroidx.compose.ui.graphics.layer.GraphicsLayer#3213 - Kotlin version has been upgraded to 2.4.20. The minimal supported Kotlin version for k/native is 2.4.0, for k/js and k/wasm is 2.4.20 #3426
Desktop
- Renamed
AlignedToScreentoAlignedToScreenAvailableBoundsandCenteredOnScreentoCenteredInScreenBoundsto clarify their behavior.CenteredInScreenBoundsnow actually centers on the screen (ignoring insets) #3291 - Libraries using experimental
DragAndDropTransferActionmust be recompiled because of a binary incompatible change #3413 - JRE fonts are now stripped from the distributable by default. If you need them, use
stripJreFonts = falsein thenativeDistributionssection of your Gradle build file #5706
Android
-
The minimum supported SDK is raised to 24 #3351
-
compileSdk37.1 is required #5719compileSdk { version = release(37) { minorApiLevel = 1 } }
Features
HTML library
- Add
StyleScope.insetextension functions #5194
Multiple Platforms
- Add support for
mediaQuerycalls which allows to modify Composables depending on device characteristics #3339 - Remove
ComposeUiFlags.areWindowInsetsRulersEnabledin favor ofWindowInsetsRulers.disable()#3211 - Support for rendering
Bulletannotations inAnnotatedString#3400
iOS
- Use
UIViewlayout and draw phases to run corresponding operation for Compose containers #3212 - Added possibility to configure
spellCheckingTypefor textfields withusingNativeTextInput = trueviaPlatformImeOptions#3305 - Support iOS Dynamic Type font scaling based on accessibility settings #3306
- Support preferred-size reporting for Compose hosting views (ComposeHostingView / ComposeHostingViewController) embedded in UIKit or SwiftUI through
sizeThatFitsproposals. Keep the defaultComposeContainerConfiguration.preferredSizeReportingStrategy = PreferredSizeReportingStrategy.SizeThatFits, for UIKit and SwiftUI on iOS 16 and later. For SwiftUI on iOS < 16, usePreferredSizeReportingStrategy.IntrinsicContentSize#2984 - Added trackpad pan and pinch gesture support #3015
- Promote the
ComposeUIView()factory functions and theirComposeUIViewConfigurationto stable API #3373 - Add
UIKitInteropSafeAreaInsetsPolicyandsafeAreaInsetsPolicytoUIKitInteropProperties. The policy controls the safe-area insets exposed to an embedded UIKit component #3490
Desktop
-
Added a new
WindowPositionProvider.CenteredInScreenBounds(DpOffset)function that centers on the screen #3291 -
Disabled Swing double buffering to reduce memory footprint #3336
-
ComposePanelwithRenderSettings.SwingGraphics- pace with the display refresh rate. Disabled by default. To enable, use this: #3498System.setProperty("skiko.swing.frame.pacing", "true") // Optional, use system timer signals additionally to vsync display signals. Less precise, but might be needed for Linux systems // System.setProperty("skiko.swing.frame.pacing.forceTimer", "true") -
Update bundled Compose Hot Reload version to 1.3.0 that enables advanced error recovery #5802
Web
- Added prefetching of
LazyLayoutitems during browser idle times #2928 - Added support for system window insets on Web. Practical usage remains severely limited by browser support. #3202
- Added support to LazyLayouts to run some work without blocking current frame's painting #2929
- Disposing Compose application automatically if parent container is destroyed #3242
- Deprecate
PointerIcon.Companion.fromKeywordand introduce equivalentPointerIconhelper function instead #3287 - Add experimental API to render WebGL textures #3323
Resources
- New API for awaiting asynchronous Compose resource loads:
awaitPendingResourceStateLoads()#5720
Gradle Plugin
- Allow excluding libraries from the dependency compatibility check via
compose { dependencyCompatibility { } }extension #5694
Fixes
Multiple Platforms
- Fixes that
GraphicsLayerwithCompositingStrategy.ModulateAlphadoes not applyalphavalue without extra invalidation #3204 - Fixed an issue in
runComposeUiTestV2 when input events requiredwaitForIdleto be processed #3302 - Dragging to select text will now automatically scroll the contents of a
SelectionContainerwhen dragging to outside the container, without the need to jiggle the mouse/pointer #3390 - Performance improvement: removed stack trace allocation when internal coroutines are cancelled on a hot path #3411
- Detect stale resolved fonts in Skia paragraph intrinsics to better handle async font resolution updates #2789
- Propagate font resolution callbacks through paragraph building and layout layers
- Fixed text with
textIndentwrapping unexpectedly: the indentation is now included into the paragraph's intrinsic width #3400 - Fixed
TextAutoSizenot shrinking text with ellipsis overflow on Skiko targets #3489 - Fix
Stroke(join = StrokeJoin.Round)andStroke(miter = 0f)being ignored; the defaultPaint()stroke join, miter limit and filter quality now match Android (Miter,4f,Low) #3528 - Fix a text style without an explicit
fontSynthesisbeing resolved twice in the font resolver cache on desktop, iOS and web #3556 - Fixed a memory leak in font state tracking during repeated text measurements, such as when animating container width #3556
- Fixed crash when
measureAndLayouton oneRootNodeOwnerdisposes another, such as removing a popup or tooltip in aBoxWithConstraints#3566
iOS
- Fixed UIKit keyboard animation curve handling by converting
UIKeyboardAnimationCurveUserInfoKeyvalues toUIViewAnimationOptions#3183 - Fix
BasicTextFieldfocus handoff between nested Compose iOS scenes #3203 - Fixed the floating cursor no longer responding horizontally after a very quick swipe on iOS #3224
- Fixed the caret not snapping to the nearest word boundary when tapping inside a word in an unfocused
BasicTextField(TextFieldValue)#3229 - Fixed the context menu appearing incorrectly after a tap in
BasicTextField(TextFieldValue)andBasicTextField(TextFieldState)#3229 KeyboardOptions.autoCorrectEnabled = falsenow disables spell checking too (in addition to iOS autocorrection) in textfields withusingNativeTextInput = true#3305- Fix an issue where back-swipe progress could exceed its maximum when a gesture moved beyond the window bounds #3337
- Fixed the system "Bold Text" accessibility setting not being applied to CJK characters when using
FontFamily.Default#3325 - Default Navigation3 push and pop transitions now follow the layout direction: in RTL layouts a push enters from the left edge and a pop reveals the previous entry from the right edge, matching native
UINavigationControllerbehavior #3346 - Fixed the
TextFieldcaret jumping to a later whitespace when tapping CJK punctuation #3342 - A focused text field now applies changed IME options without refocusing it #3304
- Fix position of Numeric popup-like keyboard on iPad #3372
- Fix the issue where the context menu remains visible when the corresponding SelectionContainer hides #3379
- Fix a crash when reopening a
DropdownMenuafter device rotation #3423 - Fix the focused text field being covered by the keyboard after device rotation #3407
- Fix incorrect keyboard insets after Compose view geometry changes #3407
- Align overscroll snapping animation with iOS animation #3432
- Fix toggleable state announcement and match it with the native
UISwitch/Toggle#3445 - Fix incorrect
UIStepperpositioning in interop views that overlap UIKit safe areas #3490 - Fix a crash when text in a text field is selected right to left in an iOS app running on a Mac #3504
- Fix possible deadlocks between native calls and GC in Skiko #3531
- Fixed an issue where Compose content ignores the Reduce Motion accessibility setting #3545
- Fixes Writing Tools menu for text inputs #3546
- Fix extra main-thread work on every frame: the Compose view no longer gets a full-screen CPU bitmap allocated and cleared before each draw #3584
- Fix crash caused by
flush()reentrancy that may occur when a new platform layer is created inside a pointer event handler #3597
Desktop
- Made window resizing smooth on macOS when using Metal (the default renderer). To enable the fix, set the system property
skiko.rendering.macos.metalSynchronousLiveResizetotrue. This will eventually become the default #3261 - [macOS] Fixed the behavior of
Ctrl+f/bin text fields (it was reversed) #3294 - Fixed an issue that caused a background flash when a window was shown for the first time #3299
- Made window resizing smooth on Windows when using Direct3D (the default renderer). To enable the fix, set the system property
skiko.rendering.windows.direct3DSynchronousLiveResizetotrue. This will eventually become the default #3299 - Fixed potential crash when the accessibility subsystem processes
focusLost#3361 - Fix crash when trying to set the content of an unavailable/busy clipboard #3364
LocalAwtWindownow provides the correct value after re-attachingComposePanelto a new window #3570- Fixed SVG rasterization caching to properly reuse cached bitmap unless size changes #5639
Web
- Show a meaningful message instead of an obscure app crash when the browser or device doesn't support WebGL2 #3222
- Fix fast deletion in mobile browsers on iOS when using the Traditional Chinese Cangjie keyboard #3167
- Fix fast deletion of text containing emojis in mobile browsers on iOS #3167
- Introduce a fallback locale and handle malformed language tags #3241
- Ensure canvas retains focus after backing HTML input removal #3246
- Fix cursor control using spacebar sliding gesture in Firefox mobile #3273
- Fix Tab focus order with interop elements #3249
- Fixed outer
HorizontalPagerstealing the touch gesture from a nestedHorizontalPagerduring a slow drag #3293 - Fix blurred UI when zooming #3303
- Support
SemanticProperties.disabledin Compose Web a11y #3308 - Fix incorrect a11y tree state after opening and closing a popup or dialog #3298
- Fixed
1nMakeRasterN32Premul is not definedwhen runningrunComposeUiTestwith JS #3316 - Support
LinkAnnotationin a11y tree, so link nodes haverole=link#3331 - Fix
LocalWindowInfo.current.isWindowFocusednot updating when browser window focus changes on Web #3347 - Fix scrolling via A11Y Tools in web browsers #3366
- Fixed nested scroll issue on a web when a collapsible app bar blocks a lazy list scrolling #3376
- Fix missing aria attributes for
Slider,RangeSliderandProgressIndicatorcomponents #3382 - Fix repeated web locale parsing during composition #3397
- Fix password obfuscation in A11Y tree #3401
- Fix missing aria attributes for textfields (read only and max text length) and selection status state #3381
- Support LiveRegion mapping to aria-live attribute #3428
- Let browser handle pinch-to-zoom gestures when Compose doesn't consume the touch events #3436
- Fixed text selection issues in Compose text fields in Safari on iOS 27 #3468
- Support fonts fallback URL customization via
ComposeViewportConfiguration.fontFallbackUrlconfig #3476 - Fixed window focus recovery after focus loss in Safari on iOS #3477
- Fix a skiko runtime when a skiko dependency is added in a test source set only #5701
Android
- Fixed rare
InterruptedExceptioncrashes when reading resources during composition on an interrupted thread #5677
Resources
- Return a default plural rule for unknown locales #5650
- Fixed android ANR when
Dispatchers.Defaultis overloaded #5688 - Fixed a Main thread deadlock when resources are read from blocking and non blocking coroutines #5691
- Fix R8 release builds failing because the optional Android test instrumentation API is unavailable #5667
- Optimise resource library on web to let a browser to draw frames between icons decoding #5708
Navigation
- Fix pop animations on iOS when custom enter/exit animations are set #3292
Components
Gradle plugin
org.jetbrains.compose version 1.13.0
Libraries
| Library group | Coordinates | Based on Jetpack |
|---|---|---|
| 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 |