Paul Krill
Editor at Large

JetBrains Compose Multiplatform debuts UI testing API

news
Mar 1, 20242 mins

Upgrade to the declarative UI framework also improves the API for sharing and accessing resources in common Kotlin code.

shutterstock 1192989865 developer with smartphone and stylus testing application interface
Credit: Dragon Images / Shutterstuck

JetBrains has released Compose Multiplatform 1.6.0, an upgrade to the company’s declarative UI framework that introduces a UI testing API and improves the common resources API. Compose Multiplatform allows developers to build UIs for Android, iOS, desktop, and web from a shared code base.

Compose Multiplatform 1.6.0 was unveiled on February 28. Instructions for getting started with Compose Multiplatform can be found at jetbrains.com.

The update features a common API for UI testing. This experimental API allows developers to write common UI tests that validate the behavior of an application’s user interface across platforms supported by the framework. For example, developers might want to ensure that a custom component correctly shows an informative string with the proper prefix. The new version of Compose Multiplatform lets developers use UI tests to validate that the component does correctly prefix the text when rendered, JetBrains said.

Compose Multiplatform 1.6.0 also brings improvements to the common resources API for sharing and accessing resources in common Kotlin code. This API now lets developers access more types of resources in Compose Multiplatform applications. Compose Multiplatform now generates type-safe accessors for images, fonts, and strings, and allows developers to provision variations of the same resources for different use cases including locale, scene density, or theme.

With version 1.6.0, Compose Multiplatform for iOS now allows people with disabilities to interact with the Compose UI using the same gestures the native UIs for navigation and interaction. And screen readers and VoiceOver can access the content of the Multiplatform UI.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author