Peep
Peep is an easy sound generator library.
$ pod try Peep
Requirements
- iOS 10.0+
- Xcode 8.0+
- Swift 5 (Peep 3.x), Swift 4 (Peep 2.x), Swift 3 (Peep 1.x)
Usage
Playing sounds is super simple.
import Peep
// play alert tone
Peep.play(sound: AlertTone.tweet)
// play key press
Peep.play(sound: KeyPress.tap)
// play haptic feedback
Peep.play(sound: HapticFeedback.selection)
// play url
Peep.play(sound: Bundle.main.url(forResource: "Success", withExtension: "m4a"))
Haptic Feedback
Add haptic feedback to Peep using Haptica.
Haptic.impact(.light).generate()
Installation
CocoaPods
To install with CocoaPods, simply add this in your Podfile
:
use_frameworks!
pod "Peep"
Carthage
To install with Carthage, simply add this in your Cartfile
:
github "efremidze/Peep"
Communication
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
Credits
License
Peep is available under the MIT license. See the LICENSE file for more info.