Minor style fixes

This commit is contained in:
Arkadiusz Fal
2022-11-19 00:58:21 +01:00
parent 99769380fc
commit a14b0b12fa
3 changed files with 15 additions and 6 deletions

View File

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