SwiftUI: Change Color brightness in gradient – Ios swift
I'm trying to create a gradient using the same color with a brightness modifier at one end. I tried this: let gradient = LinearGradient( colors: [Color.blue, Color.blue.brightness(0.1)], startPoint: .top, endPoint: .bottom) Unfortunately this does not compile with the following error:…