DamusLogoGradient.swift (741B)
1 // 2 // DamusLogoGradient.swift 3 // damus 4 // 5 // Created by eric on 5/24/23. 6 // 7 8 import SwiftUI 9 10 fileprivate let damus_logo_grad_c1 = hex_col(r: 0x30, g: 0xb3, b: 0xf1) 11 fileprivate let damus_logo_grad_c2 = hex_col(r: 0xc5, g: 0x39, b: 0xf9) 12 fileprivate let damus_logo_grad = [damus_logo_grad_c1, damus_logo_grad_c2] 13 14 struct DamusLogoGradient: View { 15 var body: some View { 16 DamusLogoGradient.gradient 17 .edgesIgnoringSafeArea([.top,.bottom]) 18 } 19 20 static var gradient: LinearGradient { 21 LinearGradient(colors: damus_logo_grad, startPoint: .leading, endPoint: .trailing) 22 } 23 } 24 25 struct DamusLogoGradient_Previews: PreviewProvider { 26 static var previews: some View { 27 DamusLogoGradient() 28 } 29 }