The APIs in Compose Multiplatform are the same ones that have already been tried and tested in Jetpack Compose. The team at JetBrains that develops Compose Multiplatform collaborates with Google and regularly upstreams changes to the Jetpack Compose repositories. Built on Jetpack ComposeĬompose Multiplatform builds on top of Jetpack Compose from Google, the recommended UI framework for modern Android development, which is 100% Kotlin. Compose Multiplatform is an optional layer for Kotlin Multiplatform applications that allows you to build declarative user interfaces once and use them for multiple target platforms. It gives you the option to implement your user interface once and then share it across target platforms – whether that’s the typical mobile case of sharing between Android and iOS or includes further platforms like desktop or web. Or you might find yourself in a situation where you need to get your application into the hands of users as fast as possible, with quick iterations, and can’t spend time manually keeping two or more UI implementations in sync.Ĭompose Multiplatform addresses this. There are a multitude of reasons why this may be the case for you: You may lack the resources or people to provide implementations that are tailor-made for each target platform. It allows you to share business logic between different platforms without having to give up access to platform-specific APIs and features – an approach that has been validated by many applications in production, with more and more companies leveraging it to get rid of unnecessary duplication of logic in their applications.īut one part of the Kotlin Multiplatform story was missing: a solution for when you don’t want to build and maintain separate user interfaces for each platform you target. With Kotlin Multiplatform, Kotlin developers already have a tried-and-tested approach to code sharing. Pushing Kotlin Multiplatform beyond business logic For a detailed look at Compose Multiplatform for iOS in action, watch the recording of the announcement talk “Compose Multiplatform on iOS” by Sebastian Aigner and Nikita Lipsky: JetBrains first announced Compose Multiplatform for iOS at KotlinConf 2023. We rely on the community to help inform and shape the future of shared Kotlin user interfaces, so give the technology a try and share your feedback! As an Alpha release, Compose Multiplatform for iOS still has many areas that are works in progress.It also allows newcomers to base their learning on established concepts and best practices. This makes it very easy for developers with a background in modern Android development to quickly get up and running with Compose Multiplatform for iOS. Compose Multiplatform uses APIs that are already being used for UI development on Android.Try it out, and help shape the future of shared mobile user interfaces with Kotlin!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |