Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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:

https://developer.apple.com/documentation/swiftui/color/3049...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: