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) } }