Create gradient with tint color in SwiftUI When styling a view in SwiftUI, I can use .foregroundStyle to apply a custom shape style, e.g.