diff --git a/Sources/View/WhatsNewView+PrimaryButtonStyle.swift b/Sources/View/WhatsNewView+PrimaryButtonStyle.swift index 1b3fbd3..fa92d00 100644 --- a/Sources/View/WhatsNewView+PrimaryButtonStyle.swift +++ b/Sources/View/WhatsNewView+PrimaryButtonStyle.swift @@ -26,22 +26,13 @@ extension WhatsNewView.PrimaryButtonStyle: ButtonStyle { func makeBody( configuration: Configuration ) -> some View { - Group { - #if os(iOS) - HStack { - Spacer() - configuration - .label - .font(.headline.weight(.semibold)) - .padding(.vertical) - Spacer() - } - #else + HStack { + Spacer() configuration .label - .padding(.horizontal, 60) - .padding(.vertical, 8) - #endif + .font(.headline.weight(.semibold)) + .padding(.vertical) + Spacer() } .foregroundColor(self.primaryAction.foregroundColor) .background(self.primaryAction.backgroundColor) diff --git a/Sources/View/WhatsNewView.swift b/Sources/View/WhatsNewView.swift index c692b9c..dffc97e 100644 --- a/Sources/View/WhatsNewView.swift +++ b/Sources/View/WhatsNewView.swift @@ -104,6 +104,9 @@ extension WhatsNewView: View { } .edgesIgnoringSafeArea(.bottom) } + #if os(macOS) + .frame(minWidth: 400, maxWidth: 600) + #endif .sheet( item: self.$secondaryActionPresentedView, content: { $0.view } @@ -226,15 +229,20 @@ private extension WhatsNewView { Text( whatsNewText: self.whatsNew.primaryAction.title ) + #if os(macOS) + .frame(minWidth: 150) + #endif } + #if os(iOS) .buttonStyle( PrimaryButtonStyle( primaryAction: self.whatsNew.primaryAction, layout: self.layout ) ) - #if os(macOS) + #elseif os(macOS) .keyboardShortcut(.defaultAction) + .controlSize(.large) #endif } }