Sets the accent color for the view and the views it contains.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
Parameters
accentColor
The color to use as an accent color. If
nil
, the accent color is the system default.
Discussion
The system uses the accent color for common controls and containers. For example, a button’s label might use the accent color for its text.