Since the foregroundStyle() modifier was introduced in iOS 15, it’s been the preferred way to color text and symbols in SwiftUI. Unlike the now-deprecated foregroundColor(), it accepts a ShapeStyle, supporting gradients and other advanced styling: https://nilcoalescing.com/blog/ForegroundColorStyleAndTintInSwiftUI/#foreground-style
#iOSDev #SwiftUI