From cfbc3b01b23215f59b07adf12e25519c884a3e3c Mon Sep 17 00:00:00 2001 From: Ivan Vorobei Date: Mon, 25 Nov 2024 18:11:11 +0300 Subject: [PATCH] Fixed modal sheet. --- .../Views/Mimicrate/ModalSheet/ModalSheetModifier.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftUIExtension/Views/Mimicrate/ModalSheet/ModalSheetModifier.swift b/Sources/SwiftUIExtension/Views/Mimicrate/ModalSheet/ModalSheetModifier.swift index 48e37c9..72dbc3c 100644 --- a/Sources/SwiftUIExtension/Views/Mimicrate/ModalSheet/ModalSheetModifier.swift +++ b/Sources/SwiftUIExtension/Views/Mimicrate/ModalSheet/ModalSheetModifier.swift @@ -62,17 +62,19 @@ struct ModalSheetModifier: ViewModifier } } .background { - Color.white + Color(uiColor: .secondarySystemGroupedBackground) } .clipShape(.rect(cornerRadius: cornerRadius)) .shadow(color: .black.opacity(0.12), radius: 6, x: .zero, y: 6) .shadow(color: .black.opacity(0.15), radius: 16, x: .zero, y: 12) .overlay { + let color = Color(uiColor: .tertiarySystemGroupedBackground) RoundedRectangle(cornerRadius: cornerRadius) - .strokeBorder(.secondary.opacity(0.5), lineWidth: 1) + .strokeBorder(color, lineWidth: 1) } .padding(.horizontal, padding) .padding(.bottom, padding) + .frame(maxWidth: 440) .offset(y: calculateDragOffset) .gesture( DragGesture()