alexzhirkevich / compose-cupertino

Compose Multiplatform UI components for iOS (Cupertino Widgets)
Apache License 2.0
993 stars 34 forks source link
compose compose-ios compose-multiplatform cupertino-widgets ios sf-symbols

Compose Cupertino

compose-mp-version kotlin-version

badge-iOS badge-Android badge-JVM badge-macOS badge-web

https://github.com/alexzhirkevich/compose-cupertino/assets/63979218/982485e8-c581-4c0e-8302-0cb257acd892

Compose Cupertino is a Kotlin Multiplatform library for the Compose Multiplatform UI framework. It provides various UI components for making native-looking iOS applications, including

Installation

Maven Central

[!IMPORTANT]
The project is in the experimental phase. All APIs can change incompatibly or be dropped without the deprecation cycle!

Add the dependency to your build.gradle.kts file.

Module Dependency
cupertino io.github.alexzhirkevich:cupertino:<version>
cupertino-native io.github.alexzhirkevich:cupertino-native:<version>
cupertino-adaptive io.github.alexzhirkevich:cupertino-adaptive:<version>
cupertino-decompose io.github.alexzhirkevich:cupertino-decompose:<version>
cupertino-icons-extended io.github.alexzhirkevich:cupertino-icons-extended:<version>

Usage

To use iOS-like widgets with Compose Cupertino and view available components, see Cupertino.

To use widgets that change based on the platform (looking like either Material You or iOS) and view available components, see Adaptive.

License

Copyright (c) 2023 Compose Cupertino project and open source contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.