It’s used as a modifier. But it exists as a general term in iOS and MacOS as well. You can set the color of a button with it.
Button("Some example") {}.accentColor(.green)
But foregroundColor-modifier seems to work the same: Button("Some example") {}.foregroundColor(.green)
Currently confused. What does the term mean in general and how does it distinguish from foregroundColor?