Skip to content

Commit 2883d0d

Browse files
committed
Add a linear gradient below status bar
1 parent 258c643 commit 2883d0d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Copilot for Xcode/ContentView.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ struct ContentView: View {
2626
startPoint: .topLeading,
2727
endPoint: .bottom
2828
))
29+
.overlay(alignment: .top) {
30+
LinearGradient(
31+
colors: [Color("BackgroundColorTop"), Color("BackgroundColorTop").opacity(0)],
32+
startPoint: .center,
33+
endPoint: .bottom
34+
)
35+
.frame(height: 44)
36+
.ignoresSafeArea()
37+
}
2938
}
3039
}
3140

0 commit comments

Comments
 (0)