diff --git a/damus/Components/Gradients/DamusGradient.swift b/damus/Components/Gradients/DamusGradient.swift index 90434a91..1f2d3b86 100644 --- a/damus/Components/Gradients/DamusGradient.swift +++ b/damus/Components/Gradients/DamusGradient.swift @@ -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 {