RSDSound
public struct RSDSound
RSDSound contains sound file URLs.
-
The name of the sound.
Declaration
Swift
public let name: String -
The url for the sound (if any).
Declaration
Swift
public let url: URL? -
Initializer for initializing system library UISounds.
Declaration
Swift
public init(name: String)Parameters
nameThe name of the sound. This is also the name of the .caf file for that sound in the library.
-
Initializer for creating a sound with a custom URL.
Declaration
Swift
public init(url: URL)Parameters
urlThe url with the path to the sound file.
-
The alarm sound.
Declaration
Swift
public static let alarm = RSDSound(name: "alarm") -
A short low-high beep sound.
Declaration
Swift
public static let short_low_high = RSDSound(name: "short_low_high") -
A short double-high beep sound.
Declaration
Swift
public static let short_double_high = RSDSound(name: "short_double_high") -
A short double-low beep sound.
Declaration
Swift
public static let short_double_low = RSDSound(name: "short_double_low") -
The
photo shutter
sound played when taking a picture.Declaration
Swift
public static let photoShutter = RSDSound(name: "photoShutter") -
A key tap sound.
Declaration
Swift
public static let tock = RSDSound(name: "Tock") -
A key tap sound.
Declaration
Swift
public static let tink = RSDSound(name: "Tink") -
The lock screen sound.
Declaration
Swift
public static let lock = RSDSound(name: "lock")
View on GitHub
RSDSound Structure Reference