I'm looking for a way to immediately react to the audio output being connected and disconnected to an airplay device.
There are UIScreen.didConnectNotification
and UIScreen.didDisconnectNotification
but they will only notify when mirroring is activated in control center.
I want to highlight the airplay icon on screen while output is being routed to another device.