From 60a93e6d0829b17c60d9b706e7da6302cf903b14 Mon Sep 17 00:00:00 2001 From: Alexander Zhirkevich Date: Thu, 5 Sep 2024 09:21:32 +0300 Subject: [PATCH] Fix adaptive switch disabled isssue (#58) --- .../github/alexzhirkevich/cupertino/adaptive/AdaptiveSwitch.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cupertino-adaptive/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/AdaptiveSwitch.kt b/cupertino-adaptive/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/AdaptiveSwitch.kt index 9b17e20..e75968d 100644 --- a/cupertino-adaptive/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/AdaptiveSwitch.kt +++ b/cupertino-adaptive/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/AdaptiveSwitch.kt @@ -80,6 +80,7 @@ fun AdaptiveSwitch( CupertinoSwitch( checked = checked, onCheckedChange = onCheckedChange, + enabled = enabled, modifier = modifier, thumbContent = thumbContent, interactionSource = interactionSource, @@ -128,4 +129,4 @@ private class SwitchAdaptation : MaterialSwitchAdaptation(colors) } } -} \ No newline at end of file +}