From 99f8d64746a14feff5e32c8a9700ffa4bf591e6d Mon Sep 17 00:00:00 2001 From: amirsaam Date: Sun, 20 Oct 2024 04:00:00 +0330 Subject: [PATCH] Update RadixButton.swift --- Sources/RadixUI/RadixThemes/RadixButton.swift | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Sources/RadixUI/RadixThemes/RadixButton.swift b/Sources/RadixUI/RadixThemes/RadixButton.swift index 5a8ddd7..1ae0275 100644 --- a/Sources/RadixUI/RadixThemes/RadixButton.swift +++ b/Sources/RadixUI/RadixThemes/RadixButton.swift @@ -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) } }