Is there any way of using a gradient as foregroundColor of Text in SwiftUI?
Thanks for the answers in advance!
.foregroundStyle()
(iOS15+)Text(“Gradient”)
.foregroundStyle(
.linearGradient(
colors: [.red, .blue],
startPoint: .top,
endPoint: .bottom
)
)