From a7ee373f2af56a773c3bac8652242593d25a388e Mon Sep 17 00:00:00 2001 From: amirsaam Date: Sun, 28 Jul 2024 18:43:30 +0330 Subject: [PATCH] Update RadixSwitch.swift --- Sources/RadixUI/RadixPrimitives/RadixSwitch.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/RadixUI/RadixPrimitives/RadixSwitch.swift b/Sources/RadixUI/RadixPrimitives/RadixSwitch.swift index 3eb98e2..db8c0ba 100644 --- a/Sources/RadixUI/RadixPrimitives/RadixSwitch.swift +++ b/Sources/RadixUI/RadixPrimitives/RadixSwitch.swift @@ -25,13 +25,13 @@ fileprivate struct RadixSwitch: ToggleStyle { RoundedRectangle(cornerRadius: 16, style: .circular) .fill(configuration.isOn ? newOnColor : newOffColor) .frame(width: 42, height: 25) - .shadow(color: .blackA7, radius: 5, x: 0, y: 2) + .radixShadow1() .overlay( Circle() .fill(newThumbColor) .frame(width: 21, height: 21) .offset(x: configuration.isOn ? 8 : -8) - .shadow(color: .blackA7, radius: 1, x: 0, y: 2) + .radixShadow1() ) .onTapGesture { withAnimation(.smooth(duration: 0.2)) {