diff --git a/README.md b/README.md index 5c84512..b8803f7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ TapticEngine generates haptic feedback vibrations on iOS device. This library wrapps on [UIImpactFeedbackGenerator](https://developer.apple.com/reference/uikit/uiimpactfeedbackgenerator), [UISelectionFeedbackGenerator](https://developer.apple.com/reference/uikit/uiselectionfeedbackgenerator), [UINotificationFeedbackGenerator](https://developer.apple.com/reference/uikit/uinotificationfeedbackgenerator). -demo_screenshot +demo_screenshot ## Demo Build Xcode project. @@ -42,6 +42,15 @@ TapticEngine.notification.feedback(.warning) // Triggers a notification feedback, indicating that a task has failed. (`UINotificationFeedbackType.error`) TapticEngine.notification.feedback(.error) + +// Prepare a impact feedback for `UIImpactFeedbackStyle.light`. +TapticEngine.impact.prepare(.light) + +// Prepare a selection feedback. +TapticEngine.selection.prepare() + +// Prepare a notification feedback. +TapticEngine.notification.prepare() ``` ## Requirements diff --git a/TapticEngine.podspec b/TapticEngine.podspec index 85c4f21..156254e 100644 --- a/TapticEngine.podspec +++ b/TapticEngine.podspec @@ -7,7 +7,7 @@ Pod::Spec.new do |s| This library wrapps on [UIImpactFeedbackGenerator](https://developer.apple.com/reference/uikit/uiimpactfeedbackgenerator), [UISelectionFeedbackGenerator](https://developer.apple.com/reference/uikit/uiselectionfeedbackgenerator), [UINotificationFeedbackGenerator](https://developer.apple.com/reference/uikit/uinotificationfeedbackgenerator). DESC s.homepage = 'https://github.com/WorldDownTown/TapticEngine' - s.screenshots = 'https://dl2.pushbulletusercontent.com/TKSfPYAu8pl5NARwARj2E3j87llwnXcs/taptic_engine.png' + s.screenshots = 'https://raw.githubusercontent.com/WorldDownTown/TapticEngine/master/images/taptic_engine.png' s.license = { type: 'MIT', file: 'LICENSE' } s.author = { WorldDownTown: 'WorldDownTown@gmail.com' } s.source = { git: 'https://github.com/WorldDownTown/TapticEngine.git', tag: s.version.to_s }