ui: expose raw LinearGradient in DamusGradient
This will be used in background-fill applications
This commit is contained in:
@@ -14,9 +14,13 @@ fileprivate let damus_grad = [damus_grad_c1, damus_grad_c2, damus_grad_c3]
|
||||
|
||||
struct DamusGradient: View {
|
||||
var body: some View {
|
||||
LinearGradient(colors: damus_grad, startPoint: .bottomLeading, endPoint: .topTrailing)
|
||||
DamusGradient.gradient
|
||||
.edgesIgnoringSafeArea([.top,.bottom])
|
||||
}
|
||||
|
||||
static var gradient: LinearGradient {
|
||||
LinearGradient(colors: damus_grad, startPoint: .bottomLeading, endPoint: .topTrailing)
|
||||
}
|
||||
}
|
||||
|
||||
struct DamusGradient_Previews: PreviewProvider {
|
||||
|
||||
Reference in New Issue
Block a user