Fix drawing borders

This commit is contained in:
Arkadiusz Fal 2022-08-06 15:26:04 +02:00
parent 152a79d44f
commit 2fd96e3a44

View File

@ -20,7 +20,7 @@ extension View {
private func verticalEdgeBorder(_ edge: Alignment, height: Double, color: Color) -> some View {
overlay(Rectangle().frame(width: nil, height: height, alignment: .top)
.foregroundColor(color), alignment: edge)
.foregroundColor(color).ignoresSafeArea(.all, edges: .horizontal), alignment: edge)
}
private func horizontalEdgeBorder(_ edge: Alignment, width: Double, color: Color) -> some View {