That’d be standard swift type inference. The .color function takes a single unnammed parameter of type Color (or similar, idk exactly). Color.gray is a static constant value. So .color(Color.gray) can be simplified to .color(.gray)
Huh, that's actually a great way to do type inference. Swift seems like an excellent language.
That syntax is a shortcut for UIColor.gray, so this is really:
.color(UIColor.gray)
I would expect it's the grey static member of SwiftUI's Color struct: