One of the hardest things about being a Mac developer is wading through tons of search results for APIs that only exist on iOS.

Looking at you, AVAudioSession.

If anyone knows how to detect if AirPlay is active on a Mac, I'd love to know! I already know how to do it on iOS 😉

@chockenberry Don't leave me hanging. How do you do it on iOS?
@nighthawk AVAudioSession.shared.currentRoute.outputs has one or more portType for AirPlay.