Creates a custom sound object for critical alerts.
- iOS 12.0+
- macOS 10.14+
- UIKit for Mac 13.0+Beta
The name of the sound file to play. This file must be located in the current executable’s main bundle or in the
Library/Soundsdirectory of the current app container directory. If files exist at both locations, the system uses the file from the
Library/Soundsdirectory. This parameter must not be
A sound object representing a custom critical alert sound.
Critical alerts ignore the mute switch and Do Not Disturb. They require a special entitlement issued by Apple.