Swiftpack.co - tadija/AESound as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by tadija.
tadija/AESound 0.3.5
Convenience API for playing iOS system sounds
⭐️ 3
🕓 3 years ago
.package(url: "https://github.com/tadija/AESound.git", from: "0.3.5")

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 = 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)

License

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

GitHub

link
Stars: 3
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics