Documentation

UI​.viewport​.prefersDark

A binding that is true if the user’s preferences indicate a dark color scheme.

const prefersDark: Binding<boolean>;

Related