compose-hig
1.1.0indexediOS-style UI components and controls with improved SwipeBox, fixed date-picker scrolling, disabled bottom-sheet content scaling, dialog-for-popup behavior, automated releases and live web demo.
iOS-style UI components and controls with improved SwipeBox, fixed date-picker scrolling, disabled bottom-sheet content scaling, dialog-for-popup behavior, automated releases and live web demo.
Apple HIG-inspired components, Liquid Glass effects, and optional UIKit integration for Compose Multiplatform.
English | 한국어
Compose-HIG brings Apple’s Human Interface Guidelines to shared Compose Multiplatform UI. Use Cupertino components directly for a consistent design across targets, opt into UIKit-backed controls on iOS, or choose adaptive components that switch between Cupertino and Material 3.
The project extends alexzhirkevich/compose-cupertino and slanos/compose-cupertino with backdrop-based Liquid Glass rendering, additional controls, and adaptive navigation. Most UI is rendered by Compose; native iOS controls are provided separately in hig-native.
This README describes the current project APIs. Installation examples use version placeholders. See installation and compatibility.
Explore the interactive WasmJS showcase, built from the sample application.
Watch or download the MP4 demo. Recorded from this source build on the iPhone 18 Pro simulator running iOS 27.0, showing swipe actions, section navigation, Lazy/Default segmented selection, scrolling, and a switch.
https://github.com/user-attachments/assets/4cc67248-f666-4ba1-9f32-988356b96b2f
The deployed web demo and earlier video may differ from the current checkout.
Watch or download the iPhone Duo MP4. Recorded from this source build on iOS 27.1 iPhone Duo simulators. The video joins separate recordings of the closed and open configurations with a cut. The open configuration combines Compose-HIG with Compose Adaptive (Compose Multiplatform Material 3 Adaptive) and Navigation 3 for list-detail navigation, and also shows a modal bottom sheet.
See iPhone Duo layouts for integration details and platform requirements.
The shared target convention configures the following library targets. “Configured” describes source/build support, not a guarantee that every effect or device has been tested.
No Intel Apple (iosX64, macosX64), tvOS, or watchOS targets are declared. The sample app targets Android, iOS, Desktop JVM, and WasmJS; it does not provide a separate JS or macOS Native launcher.
On iOS, haptics use UIKit generators. Other targets delegate to Compose’s LocalHapticFeedback, so device support determines the result. Reduced-transparency preferences are read on iOS and return false in the non-iOS implementation. High-contrast observation has platform-specific implementations; it is not a uniform system integration on every target.
Add repositories in settings.gradle.kts:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}
Replace {current version} with the version you want to use, then add the core UI dependency to commonMain:
val hig = "{current version}"
kotlin {
sourceSets {
commonMain.dependencies {
implementation("zone.ien.hig:hig:${hig}")
}
}
}
Alternatively, use a Gradle version catalog. Choose only the modules you need:
[versions]
hig = "{current version}"
[libraries]
hig = { module = "zone.ien.hig:hig", version.ref = "hig" }
hig-adaptive = { module = "zone.ien.hig:hig-adaptive", version.ref = "hig" }
hig-native = { module = "zone.ien.hig:hig-native", version.ref = "hig" }
hig-icons-extended = { module = "zone.ien.hig:hig-icons-extended", version.ref = }
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.hig)
}
}
}
For local development, use project dependencies as the sample does, or follow the Maven Local instructions.
Wrap your UI in CupertinoTheme, opt into experimental Cupertino APIs, and keep mutable values in caller-owned state. This complete composable renders a themed screen with a switch:
Call SettingsScreen() from your platform’s Compose host. Apply the scaffold’s PaddingValues to avoid overlapping its bars and insets. Explore the Cupertino showcase for a complete integration.
The following composables assume an enclosing CupertinoTheme unless they create an AdaptiveTheme. Examples use the current project APIs.
A backdrop must record the content behind the glass. Attach Modifier.layerBackdrop to the background sibling, then pass the same backdrop to the button. Keep the glass control outside the recorded layer.
rememberDefaultBackdrop() creates a LayerBackdrop initialized with the theme background; creating it alone does not capture surrounding content. isBackgroundAdaptive and isInteractive default to true. See the button parameters and Backdrop implementation.
import androidx.compose.runtime.Composable
androidx.compose.runtime.getValue
androidx.compose.runtime.mutableStateOf
androidx.compose.runtime.saveable.rememberSaveable
androidx.compose.runtime.setValue
zone.ien.hig.CupertinoSegmentedControl
zone.ien.hig.CupertinoSegmentedControlTab
zone.ien.hig.CupertinoText
zone.ien.hig.ExperimentalCupertinoApi
{
selectedIndex rememberSaveable { mutableStateOf() }
CupertinoSegmentedControl(selectedTabIndex = selectedIndex) {
listOf(, ).forEachIndexed { index, label ->
CupertinoSegmentedControlTab(
isSelected = selectedIndex == index,
onClick = { selectedIndex = index },
) {
CupertinoText(label)
}
}
}
}
Keep selectedTabIndex and each tab’s isSelected synchronized. Selection callbacks are supplied on the tabs; there is no parent onSelectedTabChange parameter. An external LayerBackdrop can be passed to the control when it should sample surrounding content.
import androidx.compose.foundation.layout.padding
androidx.compose.runtime.Composable
androidx.compose.ui.Modifier
androidx.compose.ui.unit.dp
zone.ien.hig.CupertinoSwipeBox
zone.ien.hig.CupertinoText
zone.ien.hig.ExperimentalCupertinoApi
zone.ien.hig.swipebox.CupertinoSwipeBoxItem
zone.ien.hig.theme.CupertinoColors
zone.ien.hig.theme.systemRed
{
CupertinoSwipeBox(
actionItemBuilder = {
end(onClick = onDelete) {
CupertinoSwipeBoxItem(
color = CupertinoColors.systemRed,
label = ,
onClick = onDelete,
)
}
},
) {
CupertinoText(, modifier = Modifier.padding(dp))
}
}
The builder’s end(onClick = ...) callback handles full-swipe invocation; the item’s onClick handles tapping the action. Supply both when both gestures should perform the same operation. Use start { ... } for the other side, and disable either direction with startToEndFullSwipeEnabled or endToStartFullSwipeEnabled. Both default to . defaults to .
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.runtime.Composable
androidx.compose.ui.Modifier
androidx.compose.ui.unit.dp
zone.ien.hig.CupertinoText
zone.ien.hig.ExperimentalCupertinoApi
zone.ien.hig.section.section
{
LazyColumn {
section(
title = { CupertinoText() },
caption = { CupertinoText() },
) {
item { CupertinoText(, Modifier.padding(dp)) }
item { CupertinoText(, Modifier.padding(dp)) }
}
}
}
Use stickySection for sticky headers or CupertinoSection for non-lazy content. ProvideSectionStyle shares , (default), , , or styling. Pass for collapsible sidebar sections. The demonstrates these variants.
Requires hig-adaptive. Use the non-deprecated theme-specification overload explicitly:
import androidx.compose.runtime.Composable
import zone.ien.hig.CupertinoText
import zone.ien.hig.adaptive.AdaptiveButton
import zone.ien.hig.adaptive.AdaptiveTheme
import zone.ien.hig.adaptive.CupertinoThemeSpec
import zone.ien.hig.adaptive.ExperimentalAdaptiveApi
import zone.ien.hig.adaptive.MaterialThemeSpec
@OptIn(ExperimentalAdaptiveApi::class)
@Composable
fun {
AdaptiveTheme(
material = MaterialThemeSpec.Default(),
cupertino = CupertinoThemeSpec.Default(),
) {
AdaptiveButton(onClick = onClick) {
CupertinoText()
}
}
}
The default is Cupertino on iOS and Material 3 on other platforms. Set target = Theme.Cupertino or Theme.Material3 to override it. MaterialThemeSpec and CupertinoThemeSpec configure colors, shapes, and typography. Widget adaptation blocks provide cupertino { ... } and material { ... } customization.
For Navigation 3, rememberAdaptiveListDetailSceneStrategy<T>() defaults to two panes from medium width, BackNavigationBehavior.PopLatest, and . Use to scope right-side system-area handling to the appropriate pane, to inspect the target layout, and for 160 ms fades and 240 ms bounds animation. These helpers require ; roles, preferred widths, and placeholder content remain caller-provided entry metadata. See and .
To transition Navigation 3 top-bar controls separately from the screen body, wrap NavDisplay with ProvideNavigationTopBarTransition(this) inside SharedTransitionLayout, and pass the same scope to NavDisplay(sharedTransitionScope = this@SharedTransitionLayout). Back buttons participate in shared transitions only when actual content exists. Actions retain each screen's placement, with visual scaling applied only during entrance and exit.
When returning to a screen without controls, outgoing controls grow and disappear in place instead of moving toward an empty slot. Omit absent navigationIcon and actions callbacks or pass null. The sample navigation includes this setup.
The sample combines Compose-HIG with Compose Adaptive (org.jetbrains.compose.material3.adaptive) and Navigation 3. Compose Adaptive supplies window-size directives and the list-detail scene strategy; Compose-HIG adds Cupertino styling and pane-specific system-area handling.
CupertinoScaffold observes the iOS status region, camera occlusion, safe-area insets, and hinge state to choose bar placement. On Duo, this allows content and controls to share the available screen without placing actions over the reserved system area.
| Layout | Behavior |
|---|---|
| Closed Duo | The captured compact layout keeps content in one pane and arranges top-bar actions and navigation tabs vertically on the right. |
Use CupertinoTopAppBar and CupertinoNavigationBar within CupertinoScaffold to participate in this placement. The top-bar title stays at the top while navigation buttons and actions can move into the right-side control area. When vertical navigation is active, tabs use icons; holding a tab for 0.5 seconds expands the bar and labels, and a drag selects its final tab on release.
For list-detail screens, use rememberAdaptiveListDetailSceneStrategy<T>() with caller-provided entry roles and wrap each pane in AdaptiveListDetailPane(role), as described under adaptive components. Pane count follows the window-adaptive directive; hinge detection supplies bar-placement information. Keep the PaddingValues supplied by each scaffold on its content.
Hinge observation is guarded for iOS 27.1 or later and a build SDK exposing UIHingeInteraction; the observer treats partially and fully open hinges as open. The media above verifies the closed and open simulator configurations, not physical hardware or every intermediate hinge angle.
Implementation references: iOS placement, guarded UIKit bridge, pane ownership, and sample navigation.
Requires hig-native. The caller controls whether the dialog is composed and clears that state on dismissal or action:
import androidx.compose.runtime.Composable
import zone.ien.hig.CupertinoAlertDialogNative
import zone.ien.hig.ExperimentalCupertinoApi
import zone.ien.hig.cancel
zone.ien.hig.destructive
{
(visible) {
CupertinoAlertDialogNative(
onDismissRequest = onDismiss,
title = ,
message = ,
) {
cancel(onClick = onDismiss, title = )
destructive(
onClick = {
onConfirm()
onDismiss()
},
title = ,
)
}
}
}
On iOS this uses UIAlertController; on other targets it delegates to the Compose Cupertino dialog. provides , , , and ; action defaults to . The common native APIs also include action sheets, menus, navigation bars, and date/time pickers. is iOS-only. See the and the .
On screens whose navigation bar is drawn by the platform, such as a UIKit UINavigationController (for example the native screens of compose-swift-navigation3), pass the padding those bars take through LocalCupertinoNativeBarsPadding. Screen code stays the same.
import androidx.compose.runtime.CompositionLocalProvider
import zone.ien.hig.LocalCupertinoNativeBarsPadding
import zone.ien.navigation.LocalNativeScreen
import zone.ien.navigation.NativeNavigationFrame
import zone.ien.navigation.nativeContentPadding
NativeNavigationFrame(frame = { content ->
CompositionLocalProvider(
LocalCupertinoNativeBarsPadding provides if (LocalNativeScreen.current) nativeContentPadding() else null,
) {
AppTheme(content)
}
}) { /* NativeStack / NativeTabs */ }
With a value, components behave as follows. The default, null, changes nothing.
The value is read at layout time. When the padding changes every frame (for example while a large title collapses), provide one PaddingValues object that returns the latest values, as nativeContentPadding() does; content is then only re-laid out, not recomposed.
Limitation: on a screen with a visible tab bar, a Compose bottomBar sits at the bottom of the screen behind the system tab bar. Use the platform toolbar, or use it on screens that hide the tab bar.
Public component functions generally live in zone.ien.hig; themes in zone.ien.hig.theme, sections in zone.ien.hig.section, swipe items/state in zone.ien.hig.swipebox, and adaptive APIs in zone.ien.hig.adaptive. The following source links provide complete signatures and KDoc.
Key parameters of CupertinoLiquidButton; the source includes the complete signature.
These are the current source build settings, not a compatibility promise for every published version or downstream project.
Sources: version catalog, Gradle properties, target convention, wrapper, and workflows.
If Compose content flickers during a UIKit transition that presents a native menu, alert, or action sheet, call enableCupertinoParallelRenderingFix() on the main thread before creating the first ComposeUIViewController.
import androidx.compose.ui.window.ComposeUIViewController
import platform.UIKit.UIViewController
import zone.ien.hig.enableCupertinoParallelRenderingFix
fun MainViewController(): UIViewController {
check(enableCupertinoParallelRenderingFix()) { "Compose 병렬 렌더링 보정을 적용하지 못했습니다" }
return ComposeUIViewController {
App()
}
}
Here App() is your application’s root composable. This library’s iOS-only fix patches Compose 1.12.2’s internal CMPMetalLayer drawable acquisition path once for the entire process; repeated calls do not apply the patch again. It prevents reuse of buffers that are still being composited or have unfinished GPU work while preserving parallel rendering and existing opaque and blur settings. With this fix applied, you do not need to set parallelRendering = false.
The fix reuses idle buffers first and grows the pool only when needed, up to five buffers, which can increase memory usage. If all buffers are busy, the rendering thread may wait or skip a frame; the main thread does not wait for a buffer to become idle. This does not guarantee that every source of flickering is resolved or that there is no performance impact.
The function returns false when called off the main thread or when Compose’s internal structure is incompatible, causing the example’s check to fail. This patches an internal implementation rather than using an official Compose API, so recheck compatibility and whether the fix is still needed whenever you change Compose versions. See the iOS example.
Run commands from the repository root with the included Gradle wrapper. The sample build uses local module dependencies, so it exercises this checkout rather than a published binary.
./gradlew :hig:tasks :hig-adaptive:tasks --all
./gradlew :hig:assemble :hig-core:assemble :hig-native:assemble :hig-adaptive:assemble :hig-icons-extended:assemble
./gradlew :hig:desktopTest :hig-adaptive:desktopTest
./gradlew :hig:jsBrowserTest :hig-adaptive:jsBrowserTest
Sample launch/build commands:
./gradlew :example:desktopApp:run
./gradlew :example:shared:wasmJsBrowserDevelopmentRun
./gradlew :example:shared:wasmJsBrowserDistribution
./gradlew :example:androidApp:assembleDebug
For iOS, open the Xcode project on macOS and run the iosApp scheme on an ARM64 simulator or device. Android can be launched through the example:androidApp run configuration in Android Studio. Desktop packaging is configured for DMG, MSI, and DEB in the sample build.
To install source-version artifacts locally:
./gradlew :hig-core:publishToMavenLocal :hig:publishToMavenLocal :hig-native:publishToMavenLocal :hig-adaptive:publishToMavenLocal :hig-icons-extended:publishToMavenLocal
Full multiplatform assembly and local publication require the corresponding platform toolchains. Build and test commands above describe the available tasks; they are not a claim that all platforms were run during documentation maintenance. The CI workflow defines desktop, JS, iOS simulator, and macOS Native test jobs; deployment builds the WasmJS distribution.
Useful entry points: application theme, Cupertino controls, adaptive controls, sections, and haptics.
Licensed under the Apache License 2.0. The license file also retains its JetBrains copyright notice.
Compose-HIG is a fork and extension of alexzhirkevich/compose-cupertino and slanos/compose-cupertino. This repository adds Liquid Glass controls, swipe actions, expanded component APIs, and adaptive navigation work. Rendering uses Backdrop; dependency coordinates and versions are recorded in the version catalog.
Existing project copyright notices are retained:
Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
Copyright (c) 2025. Scott Lanoue.
Copyright (c) 2026. IENGROUND of IENLAB.
CupertinoSection, section, and stickySection support grouped, inset, plain, and sidebar layouts with shared styling and section state.hig-native adds UIKit-backed dialogs, action sheets, menus, date/time pickers, and navigation bars, with Compose fallbacks for the common native APIs on other targets.hig-adaptive selects Cupertino on iOS and Material 3 elsewhere by default, allows per-component customization, and provides Navigation 3 list-detail helpers. Choose or override the theme.hig-core; platform behavior is described below.CupertinoIcons.Outlined and CupertinoIcons.Filled provide Compose ImageVector icons; Default aliases Outlined. The optional extended module expands the available set.| Platform | Status / targets | Native API behavior | Default adaptive theme |
|---|
| Android | Configured: Android library, minimum API 29 | Compose fallbacks | Material 3 |
| iOS | Configured: iosArm64, iosSimulatorArm64 | UIKit implementations | Cupertino |
| Desktop JVM | Configured: desktop | Compose fallbacks | Material 3 |
| macOS Native | Experimental Compose target: macosArm64 | Compose fallbacks; not UIKit | Material 3 |
| Web JavaScript | Configured: js(IR) browser | Compose fallbacks | Material 3 |
| WebAssembly | Configured: wasmJs browser; sample and web demo available | Compose fallbacks | Material 3 |
| Artifact | Purpose |
|---|
zone.ien.hig:hig | Compose Cupertino UI; includes hig-core transitively |
zone.ien.hig:hig-core | Theme foundations, colors, shapes, accessibility, and haptics |
zone.ien.hig:hig-native | Native iOS wrappers and non-iOS fallbacks; includes hig |
zone.ien.hig:hig-adaptive | Cupertino/Material 3 adaptation; includes hig and hig-native |
zone.ien.hig:hig-icons-extended | Additional Cupertino vectors |
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import zone.ien.hig.CupertinoScaffold
import zone.ien.hig.CupertinoSwitch
import zone.ien.hig.CupertinoText
import zone.ien.hig.ExperimentalCupertinoApi
import zone.ien.hig.theme.CupertinoTheme
fun SettingsScreen() {
CupertinoTheme {
var notificationsEnabled by rememberSaveable { mutableStateOf(true) }
CupertinoScaffold { contentPadding ->
Column(
modifier = Modifier.fillMaxSize().padding(contentPadding).padding(16.dp),
verticalArrangement = Arrangement.spacedBy(12.dp),
) {
CupertinoText("Notifications")
CupertinoSwitch(
checked = notificationsEnabled,
onCheckedChange = { notificationsEnabled = it },
)
}
}
}
}
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import com.kyant.backdrop.backdrops.layerBackdrop
import zone.ien.hig.CupertinoLiquidButton
import zone.ien.hig.CupertinoText
import zone.ien.hig.ExperimentalCupertinoApi
import zone.ien.hig.utils.rememberDefaultBackdrop
fun GlassButton(onClick: () -> Unit) {
val backdrop = rememberDefaultBackdrop()
Box(Modifier.fillMaxSize()) {
Box(
Modifier.fillMaxSize()
.layerBackdrop(backdrop)
.background(Brush.linearGradient(listOf(Color.Blue, Color.Magenta))),
)
CupertinoLiquidButton(
onClick = onClick,
backdrop = backdrop,
modifier = Modifier.align(Alignment.Center).padding(16.dp),
) {
CupertinoText("Continue")
}
}
}
trueCupertinoSwipeBoxItem.restoreOnClicktrueSidebarInsetGroupedGroupedInsetPlainrememberSectionState()shouldHandleSinglePaneLayout = trueAdaptiveListDetailPane(role)isAdaptiveListDetailExpandedadaptivePaneAnimation()ExperimentalMaterial3AdaptiveApi| Open Duo | The sample’s wider window displays the navigation list and selected detail together. AdaptiveListDetailPane assigns right-side bars and insets to the pane at the physical right edge. |
| Modal bottom sheet | CupertinoBottomSheetContent keeps its top bar horizontal at the top of the sheet, including on Duo. |
NativeAlertDialogActionsScopeactiondefaultcanceldestructiveenabledtrueCupertinoColorPickerNativeCupertinoTopAppBar, AdaptiveTopAppBar, and CupertinoNavigationTitle draw nothing. Declare titles and buttons on the platform bar instead.CupertinoScaffold, AdaptiveScaffold (Cupertino and Material), and CupertinoBottomSheetScaffold do not draw topBar. For their content padding, the sides contentWindowInsets pads (greater than zero) take this value, and zero sides stay zero. The default (WindowInsets.systemBars) therefore becomes the platform bars' padding, while a scaffold given WindowInsets(0), such as an app-wide wrapper, adds no padding. With a bottomBar, CupertinoScaffold uses the greater of its height and the platform bottom padding, preserving keyboard clearance.contentWindowInsets.withCupertinoNativeBars().imePadding() there is zero.cupertinoScrollEdge does nothing; the platform bar draws the scroll edge effect.CupertinoBottomSheetContent and the sheet of CupertinoBottomSheetScaffold) ignore it and draw their own top bar. The sheet of CupertinoBottomSheetScaffold starts below the platform bar.| API / source | Purpose |
|---|
CupertinoButton, CupertinoIconButton | Standard buttons, sizes, colors, enabled state, and content slots. |
CupertinoLiquidButton, CupertinoLiquidIconButton | Backdrop-aware buttons; see parameters. |
CupertinoAlertDialog, CupertinoActionSheet | Compose dialogs and action builders; Liquid Glass variants are also available. |
CupertinoDropdownMenu | Popup menus with actions, sections, and dividers. |
CupertinoTextField, CupertinoBorderedTextField | Text input; search fields add search-specific UI. |
CupertinoCheckBox, CupertinoTriStateCheckBox | Two-state and tri-state selection; switches provide toggles. |
CupertinoSlider, CupertinoRangeSlider | Continuous value and range input. |
CupertinoPicker | Wheel selection; dedicated date, time, and date-time APIs. |
CupertinoSegmentedControl, CupertinoSegmentedControlTab | State-controlled selection, draggable indicator, and tab callbacks. |
CupertinoSwipeBox | Start/end actions, remembered swipe state, and optional full-swipe invocation. |
section, stickySection | Lazy sections; CupertinoSection handles non-lazy content. |
CupertinoScaffold | Top/bottom bar, snackbar, FAB, inset, and content slots. |
CupertinoTopAppBar | Top app bars; also navigation bars and bottom app bars. |
CupertinoBottomSheet | Modal sheet; CupertinoBottomSheetScaffold provides persistent sheet structure. |
CupertinoSmallFloatingActionButton, CupertinoMediumFloatingActionButton, CupertinoLargeFloatingActionButton, CupertinoExtraLargeFloatingActionButton | Four floating action button sizes. |
CupertinoActivityIndicator | Activity/loading feedback. |
CupertinoText | Theme-aware text; CupertinoIcon renders vectors or painters. |
CupertinoTheme takes colorScheme (system light/dark by default), shapes = Shapes(), typography = Typography(), and a required composable content. Read values through CupertinoTheme.colorScheme, .shapes, and .typography.ColorScheme, lightColorScheme(), darkColorScheme(), and CupertinoColors expose semantic and system colors. Several CupertinoColors values, including systemRed, are extension properties and need their imports.SectionState exposes isCollapsed, mutable canCollapse, and toggle(), collapse(), expand(). rememberSectionState(initiallyCollapsed = false, canCollapse = true) saves section state.rememberCupertinoSwipeBoxState creates the AnchoredDraggableState<SwipeBoxStates> accepted by CupertinoSwipeBox.CupertinoIcons groups vectors into Outlined and Filled; import each icon extension from its corresponding package. See the icon sample.LocalCupertinoRightSystemArea is a CompositionLocal<Boolean> defaulting to true. It indicates whether the current pane owns the right-side system area; AdaptiveListDetailPane scopes it for list-detail layouts. See Duo integration.Accessibility exposes isHighContrastEnabled and isReduceTransparencyEnabled; rememberCupertinoHapticFeedback() returns Compose HapticFeedback.| Parameter | Type | Default | Behavior |
|---|
onClick | () -> Unit | Required | Click callback |
backdrop | Backdrop | Required | Background source for glass rendering |
modifier | Modifier | Modifier | Layout and semantics modifiers |
enabled | Boolean | true | Enables interaction |
size | CupertinoButtonSize | Regular | Small, Regular, Large, or ExtraLarge |
colors | CupertinoLiquidButtonColors | glassButtonColors() | Tint, surface, and content colors; glassProminentButtonColors() is another preset |
shape | Shape | size.shape(CupertinoTheme.shapes) | Shape derived from size and theme |
contentPadding | PaddingValues | size.contentPadding | Inner spacing |
interactionSource | MutableInteractionSource | Remembered instance | Press/interaction tracking |
isBackgroundAdaptive | Boolean | true | Background-aware appearance |
isInteractive | Boolean | true | Interactive visual response |
content | @Composable RowScope.() -> Unit | Required | Button content |
| Setting | Repository value / requirement |
|---|
| Kotlin / Compose compiler plugin | 2.4.21 |
| Compose Multiplatform | 1.12.2 |
| Material 3 dependency | 1.12.0-alpha03 |
| Android Gradle Plugin | 9.3.1 |
| Gradle wrapper | 9.7.0 |
| Android SDK | Minimum 29; compile 37 with minor API 1; sample target 37 |
| JVM bytecode | Target 17 for Android and Desktop library code |
| Build JDK | Publishing workflow uses JDK 21; test/deploy workflows currently declare JDK 17 |
| iOS sample deployment target | 15.3 in the Xcode project; not a verified minimum for all library dependencies |
| Apple builds | macOS and an appropriate Xcode/SDK installation |
| Browser tests | Chrome/Chromium for the configured Karma headless runner |
@OptIn(ExperimentalCupertinoApi::class); adaptive APIs require ExperimentalAdaptiveApi. Navigation helpers may require additional upstream experimental opt-ins. Alpha versions can change APIs.CupertinoTheme installs accessibility observation and haptic/theme defaults, but does not turn Compose components into UIKit views. Reduced transparency changes glass rendering on iOS.Surfaced from shared tags and platforms — no rankings paid for.