From 3de4642a5b399003cb218cfdb8ba69b01409bcb5 Mon Sep 17 00:00:00 2001 From: Anian Schleyer <98647423+anian03@users.noreply.github.com> Date: Wed, 26 Jun 2024 19:38:50 +0200 Subject: [PATCH] `Notifications`: Fix size of PushNotificationSetupView (#61) --- .../PushNotifications/Views/PushNotificationSetupView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/PushNotifications/Views/PushNotificationSetupView.swift b/Sources/PushNotifications/Views/PushNotificationSetupView.swift index fc10efa..3e82a5b 100644 --- a/Sources/PushNotifications/Views/PushNotificationSetupView.swift +++ b/Sources/PushNotifications/Views/PushNotificationSetupView.swift @@ -25,7 +25,9 @@ public struct PushNotificationSetupView: View { Image("notifications", bundle: .module) .resizable() .scaledToFit() - .frame(width: UIScreen.main.bounds.size.width * 0.8) + .containerRelativeFrame(.horizontal) { width, _ in + width * 0.8 + } Text(R.string.localizable.push_notification_settings_receive_label()) .bold() Text(R.string.localizable.push_notification_settings_receive_information())