Instance Method


Sets the accent color for this view and the views it contains.


func accentColor(_ accentColor: Color?) -> some View



The color to use as an accent color. If nil, the accent color is the system default.


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.

See Also

Adopting View Color Schemes

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software