Skip to content

Commit cfbc3b0

Browse files
committed
Fixed modal sheet.
1 parent eef6b64 commit cfbc3b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/SwiftUIExtension/Views/Mimicrate/ModalSheet/ModalSheetModifier.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,19 @@ struct ModalSheetModifier<ModalContent: View, Selection: Hashable>: ViewModifier
6262
}
6363
}
6464
.background {
65-
Color.white
65+
Color(uiColor: .secondarySystemGroupedBackground)
6666
}
6767
.clipShape(.rect(cornerRadius: cornerRadius))
6868
.shadow(color: .black.opacity(0.12), radius: 6, x: .zero, y: 6)
6969
.shadow(color: .black.opacity(0.15), radius: 16, x: .zero, y: 12)
7070
.overlay {
71+
let color = Color(uiColor: .tertiarySystemGroupedBackground)
7172
RoundedRectangle(cornerRadius: cornerRadius)
72-
.strokeBorder(.secondary.opacity(0.5), lineWidth: 1)
73+
.strokeBorder(color, lineWidth: 1)
7374
}
7475
.padding(.horizontal, padding)
7576
.padding(.bottom, padding)
77+
.frame(maxWidth: 440)
7678
.offset(y: calculateDragOffset)
7779
.gesture(
7880
DragGesture()

0 commit comments

Comments
 (0)