SwiftySound – A Simple Swift Library For Playing Sounds

Swifty Sound is an open source Swift library submitted by Adam Cichy that simplifies working with sounds in Swift.

Swifty provides a simple syntax for playing/stopping sounds, looping sounds a specific number or unlimited times, and variables for enabling and disabling sounds.

This snippet from the readme shows how to play a sound file and loop three times:

Sound.play(file: "dog", fileExtension: "wav", numberOfLoops: 3)

You can find SwiftySound on Github here.

A nice library for easily playing audio.

Original article: SwiftySound – A Simple Swift Library For Playing Sounds

©2017 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *