Skip to content

Commit

Permalink
Update RadixButton.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
amirsaam committed Oct 20, 2024
1 parent 834b211 commit 99f8d64
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Sources/RadixUI/RadixThemes/RadixButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
import SwiftUI

fileprivate struct RadixButton: ButtonStyle {
func makeBody(configuration: Configuration) -> some View {
Group {
configuration.label
}
.scaleEffect(configuration.isPressed ? 0.97 : 1)
.opacity(configuration.isPressed ? 0.8 : 1)
.animation(.easeInOut(duration: 0.1), value: configuration.isPressed)
func makeBody(configuration: Self.Configuration) -> some View {
configuration.label
.scaleEffect(configuration.isPressed ? 0.97 : 1)
.opacity(configuration.isPressed ? 0.8 : 1)
.animation(.easeInOut(duration: 0.1), value: configuration.isPressed)
}
}

Expand Down

0 comments on commit 99f8d64

Please sign in to comment.