Segmented displays are ubiquitous in the world of electronics. They are used in everything from digital clocks to thermostats to calculators to microwave ovens. This library provides a Composable function that can be used to create and style a segmented display in your Compose Multiplatform application.
Because this library is a Compose Multiplatform library, the following platforms are supported:
- Android
- iOS
- Desktop (via JVM)
- Web (via WASM)
There are two modules in this project:
- segmented-display, the library module that you can depend upon in your Compose Multiplatform project
- composeApp, a demo application that shows the main library features
If using the kotlin multiplatform plugin, first, configure the compose plugin. Then add:
kotlin {
sourceSets {
commonMain.dependencies {
implementation("com.fsryan.ui:segmented-display:x.y.z")
}
}
}
Otherwise, configure Compose in your project. Then add the following to the dependencies block:
dependencies {
implementation("com.fsryan.ui:segmented-display:x.y.z")
}