diff --git a/Features/Login/LoginView.swift b/Features/Login/LoginView.swift index 8f20fa8..6bca4a7 100644 --- a/Features/Login/LoginView.swift +++ b/Features/Login/LoginView.swift @@ -97,7 +97,7 @@ struct LoginView: View { navigateToDashboard = true } .presentationDetents([.height(200)]) - .presentationCornerRadius(20) + .modifier(SheetCornerRadius(20)) } .onAppear { vm.onAuthenticated = { navigateToDashboard = true } @@ -158,3 +158,15 @@ struct MoreOptionsSheet: View { .buttonStyle(ScaleButtonStyle()) } } + +private struct SheetCornerRadius: ViewModifier { + let radius: CGFloat + init(_ radius: CGFloat) { self.radius = radius } + func body(content: Content) -> some View { + if #available(iOS 16.4, *) { + content.presentationCornerRadius(radius) + } else { + content + } + } +}