Skip to content

Commit

Permalink
Fixed modal sheet.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Nov 25, 2024
1 parent eef6b64 commit cfbc3b0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,19 @@ struct ModalSheetModifier<ModalContent: View, Selection: Hashable>: 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()
Expand Down

0 comments on commit cfbc3b0

Please sign in to comment.