From 9e3ebebd14836675bc85596e52d6130a6efab5de Mon Sep 17 00:00:00 2001 From: OutdatedGuy Date: Fri, 19 Sep 2025 09:21:53 +0530 Subject: [PATCH 1/2] fix(macos): update switch to not render as a checkbox --- example/ios/Podfile.lock | 6 +++--- example/macos/Podfile.lock | 4 ++-- example/pubspec.lock | 2 +- macos/Classes/Shared/SwitchShared.swift | 3 +-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index ee96cbe..580b948 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -19,10 +19,10 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/integration_test/ios" SPEC CHECKSUMS: - cupertino_native: 2bf2872026a59c9db5b72250892f7d9ca5244197 + cupertino_native: 1db0611c94f9a9ea28433ed16a344dcb996370b5 Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 - integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573 + integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e PODFILE CHECKSUM: e30f02f9d1c72c47bb6344a0a748c9d268180865 -COCOAPODS: 1.15.2 +COCOAPODS: 1.16.2 diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index fb03da8..b3b9fe7 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -14,9 +14,9 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral SPEC CHECKSUMS: - cupertino_native: 1e6e510e1e54c6a6c048937f5527cc46c43f28a6 + cupertino_native: 69ee8a8bac1c467f04256be9d78899a180287d9a FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1 PODFILE CHECKSUM: 346bfb2deb41d4a6ebd6f6799f92188bde2d246f -COCOAPODS: 1.15.2 +COCOAPODS: 1.16.2 diff --git a/example/pubspec.lock b/example/pubspec.lock index a06aa8d..cdb3ce5 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -55,7 +55,7 @@ packages: path: ".." relative: true source: path - version: "0.1.0" + version: "0.1.1" fake_async: dependency: transitive description: diff --git a/macos/Classes/Shared/SwitchShared.swift b/macos/Classes/Shared/SwitchShared.swift index fe52b21..ee07572 100644 --- a/macos/Classes/Shared/SwitchShared.swift +++ b/macos/Classes/Shared/SwitchShared.swift @@ -1,7 +1,5 @@ import SwiftUI -import SwiftUI - struct CupertinoSwitchView: View { @ObservedObject var model: SwitchModel @@ -12,6 +10,7 @@ struct CupertinoSwitchView: View { .onChange(of: model.value) { newValue in model.onChange(newValue) } + .toggleStyle(.switch) if #available(macOS 12.0, *) { base.tint(model.tintColor) From 5ebbcecd36b5ca6f41bedddf7bdaee440705d022 Mon Sep 17 00:00:00 2001 From: OutdatedGuy Date: Fri, 5 Dec 2025 15:14:31 +0530 Subject: [PATCH 2/2] revert unnecessary lock file changes --- example/ios/Podfile.lock | 6 +++--- example/macos/Podfile.lock | 4 ++-- example/pubspec.lock | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 580b948..ee96cbe 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -19,10 +19,10 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/integration_test/ios" SPEC CHECKSUMS: - cupertino_native: 1db0611c94f9a9ea28433ed16a344dcb996370b5 + cupertino_native: 2bf2872026a59c9db5b72250892f7d9ca5244197 Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 - integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e + integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573 PODFILE CHECKSUM: e30f02f9d1c72c47bb6344a0a748c9d268180865 -COCOAPODS: 1.16.2 +COCOAPODS: 1.15.2 diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index b3b9fe7..fb03da8 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -14,9 +14,9 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral SPEC CHECKSUMS: - cupertino_native: 69ee8a8bac1c467f04256be9d78899a180287d9a + cupertino_native: 1e6e510e1e54c6a6c048937f5527cc46c43f28a6 FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1 PODFILE CHECKSUM: 346bfb2deb41d4a6ebd6f6799f92188bde2d246f -COCOAPODS: 1.16.2 +COCOAPODS: 1.15.2 diff --git a/example/pubspec.lock b/example/pubspec.lock index cdb3ce5..a06aa8d 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -55,7 +55,7 @@ packages: path: ".." relative: true source: path - version: "0.1.1" + version: "0.1.0" fake_async: dependency: transitive description: