controlActiveState
The active appearance expected of controls in a window.
Declaration
var controlActiveState: ControlActiveState { get set }Discussion
ControlActiveState and EnvironmentValues.controlActiveState are deprecated, use EnvironmentValues.appearsActive instead.
Starting with macOS 15.0, the value of this environment property is strictly mapped to and from EnvironmentValues.appearsActive as follows:
appearsActive == true,controlActiveStatereturns.keyappearsActive == false,controlActiveStatereturns.inactivecontrolActiveStateis set to.keyor.active,appearsActivewill be set totrue.controlActiveStateis set to.inactive,appearsActivewill be set tofalse.