Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justintime50/swiftsystemsounds
A library of iOS system sounds for Swift packages.
https://github.com/justintime50/swiftsystemsounds
ios library package sounds swift system
Last synced: 21 days ago
JSON representation
A library of iOS system sounds for Swift packages.
- Host: GitHub
- URL: https://github.com/justintime50/swiftsystemsounds
- Owner: Justintime50
- License: mit
- Created: 2022-08-29T22:09:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T18:20:52.000Z (over 2 years ago)
- Last Synced: 2024-10-25T06:48:51.640Z (2 months ago)
- Topics: ios, library, package, sounds, swift, system
- Language: Swift
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftSystemSounds
A library of iOS system sounds for Swift packages.
[![Build Status](https://github.com/Justintime50/SwiftSystemSounds/workflows/build/badge.svg)](https://github.com/Justintime50/SwiftSystemSounds/actions)
[![Licence](https://img.shields.io/github/license/justintime50/SwiftSystemSounds)](LICENSE)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
```swift
import SwiftSystemSounds// Pass in one of dozens of built-in sound names via enum
SwiftSystemSounds.playSound(sound: .buttonTap)
```## Development
```bash
# Build the project
make build# Lint the project
make lint# Test the project
make test
```## Attribution
Used mappings from to create library.