diff --git a/iosApp/iosApp/Info.plist b/iosApp/iosApp/Info.plist index 46962630..e689deaf 100644 --- a/iosApp/iosApp/Info.plist +++ b/iosApp/iosApp/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString 1.0.4 CFBundleVersion - 534 + 537 LSRequiresIPhoneOS CADisableMinimumFrameDurationOnPhone diff --git a/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Checkbox.kt b/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Checkbox.kt index cb437169..f5b4686b 100644 --- a/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Checkbox.kt +++ b/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Checkbox.kt @@ -75,9 +75,9 @@ fun Checkbox( Modifier.toggleable( value = checked, onValueChange = { - onCheckedChange.invoke(!checked) + onCheckedChange(it) hapticFeedback.performHapticFeedback( - if (checked) HapticFeedbackType.ToggleOn else HapticFeedbackType.ToggleOff + if (it) HapticFeedbackType.ToggleOn else HapticFeedbackType.ToggleOff ) }, enabled = enabled, diff --git a/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Switch.kt b/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Switch.kt index 0fa8b18b..6d48fdab 100644 --- a/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Switch.kt +++ b/miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Switch.kt @@ -111,7 +111,7 @@ fun Switch( onValueChange = { onCheckedChange(it) hapticFeedback.performHapticFeedback( - if (checked) HapticFeedbackType.ToggleOn else HapticFeedbackType.ToggleOff + if (it) HapticFeedbackType.ToggleOn else HapticFeedbackType.ToggleOff ) }, enabled = enabled,