That notification has been private for a while (I can't remember if it was officially documented at some point in the past). You need to observe outputVolume of your audio session. Documentation here: https://developer.apple.com/documentation/avfaudio/avaudiosession/1616533-outputvolume
Topic:
Programming Languages
SubTopic:
Swift
Tags: