Sets the color that the view uses for foreground elements.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Sets the color that the view uses for foreground elements.
SDKs
Framework
func accent Color(Color?) -> View
Sets the accent color for the view and the views it contains.