Swiftpack.co - Justintime50/SwiftSystemSounds as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Justintime50.
Justintime50/SwiftSystemSounds v0.1.2
A library of iOS system sounds for Swift packages.
⭐️ 1
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/Justintime50/SwiftSystemSounds.git", from: "v0.1.2")

SwiftSystemSounds

A library of iOS system sounds for Swift packages.

Build Status Licence

This library contains dozens of built-in iOS system sounds available to use (not all sounds are available via this library). Simply pass in an enum of the sound name you would like to play to the playSound() function.

Install

  1. Navigate to File › Add Packages (in Xcode) and enter https://github.com/Justintime50/SwiftSystemSounds
  2. Adjust version to use
  3. Click Add Package

Usage

import SwiftSystemSounds

// Pass in one of dozens of built-in sound names via enum
SwiftSystemSounds.playSound(sound: .buttonTap)

Development

# Build the project
make build

# Lint the project
make lint

# Test the project
make test

Attribution

Used mappings from https://github.com/TUNER88/iOSSystemSoundsLibrary to create library.

GitHub

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

Release Notes

v0.1.2
1 year ago
  • Refactors package to use mappings instead of a large switch/case statement to greatly reduce complexity
  • Adds Swiftlint and GitHub Actions

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