Swiftpack.co -  tadija/AESound as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
tadija/AESound
Convenience API for playing iOS system sounds
.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: 2
Last commit: 22 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

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