Use a Gradient As The Foreground Style of a Text
Daily Coding Tip 281
Before iOS 15 there was no .foregroundStyle(_:) modifier, so it was a bit more tricky to use a gradient this way. In iOS 15 and newer versions all we have to do is pass the gradient. This is because LinearGradient conforms to the ShapeStyle protocol as well as the View protocol.
This is an app that lets you use a TextF…


