mirror of
https://github.com/yattee/yattee.git
synced 2025-01-25 14:17:03 +00:00
Fix drawing borders
This commit is contained in:
parent
91721a3506
commit
f359b75d63
@ -20,7 +20,7 @@ extension View {
|
|||||||
|
|
||||||
private func verticalEdgeBorder(_ edge: Alignment, height: Double, color: Color) -> some View {
|
private func verticalEdgeBorder(_ edge: Alignment, height: Double, color: Color) -> some View {
|
||||||
overlay(Rectangle().frame(width: nil, height: height, alignment: .top)
|
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 {
|
private func horizontalEdgeBorder(_ edge: Alignment, width: Double, color: Color) -> some View {
|
||||||
|
Loading…
Reference in New Issue
Block a user