Peep 3.0.0

Peep 3.0.0

Lasha Efremidze 维护。



Peep 3.0.0

  • efremidze

Peep

Build Status Version License Platform Carthage compatible

Peep 是一个简单的声音生成库。

$ pod try Peep

要求

  • iOS 10.0+
  • Xcode 8.0+
  • Swift 5 (Peep 3.x),Swift 4 (Peep 2.x),Swift 3 (Peep 1.x)

用法

播放声音非常简单。

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"))

触觉反馈

使用 Haptica 将触觉反馈添加到 Peep。

Haptic.impact(.light).generate()

安装

苹果Pods

使用 苹果Pods 安装,只需在你的 Podfile 中添加以下内容:

use_frameworks!
pod "Peep"

卡迪亚

使用 卡迪亚 安装,只需在你的 Cartfile 中添加以下内容:

github "efremidze/Peep"

通信

  • 如果您发现了一个 错误,请提交一个问题。
  • 如果您有 功能请求,请提交一个问题。
  • 如果您 想贡献力量,请提交一个Pull请求。

鸣谢

许可

Peep 依据MIT许可证提供。有关更多信息,请参阅LICENSE文件。