Skip to content

Commit

Permalink
Update RadixSwitch.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
amirsaam committed Jul 28, 2024
1 parent c900d62 commit a7ee373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/RadixUI/RadixPrimitives/RadixSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit a7ee373

Please sign in to comment.