Linear Gradient in SwiftUI
RoundedRectangle(cornerRadius: 25.0) .fill( LinearGradient(gradient: Gradient(colors: [Color.red, Color.blue]), startPoint: .leading, endPoint: .trailing) ) .frame(width: 300, height: 200)
Read moreRoundedRectangle(cornerRadius: 25.0) .fill( LinearGradient(gradient: Gradient(colors: [Color.red, Color.blue]), startPoint: .leading, endPoint: .trailing) ) .frame(width: 300, height: 200)
Read more