Swiftpack.co - Package - tadija/AESound

AESound

Convenience API for playing iOS system sounds

I made this for personal use, but feel free to use it or contribute.

Usage

// AudioToolbox
AESound().playSystemSound(.uisounds_go_to_sleep_alert)

// AVFoundation
let output = AESound()
let path = AESound.SystemSound.uisounds_go_to_sleep_alert.rawValue
output.prepareSound(atPath: path)
output.playSound(atPath: path)
output.cleanupSound(atPath: path)

Installation

.Package(url: "https://github.com/tadija/AESound.git", majorVersion: 0)
github "tadija/AESound"

License

This code is released under the MIT license. See LICENSE for details.

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total: 0