{"id":1255,"url":"https://github.com/WorldDownTown/TapticEngine","last_synced_at":"2025-07-30T20:33:00.303Z","repository":{"id":56923838,"uuid":"87710548","full_name":"WorldDownTown/TapticEngine","owner":"WorldDownTown","description":"TapticEngine generates haptic feedback vibrations on iOS device.","archived":false,"fork":false,"pushed_at":"2018-12-19T10:43:43.000Z","size":69,"stargazers_count":260,"open_issues_count":3,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-14T01:18:54.214Z","etag":null,"topics":["ios","swift","uifeedbackgenerator"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WorldDownTown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-09T13:29:09.000Z","updated_at":"2024-10-12T13:03:17.000Z","dependencies_parsed_at":"2022-08-21T05:20:54.253Z","dependency_job_id":null,"html_url":"https://github.com/WorldDownTown/TapticEngine","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorldDownTown%2FTapticEngine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorldDownTown%2FTapticEngine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorldDownTown%2FTapticEngine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WorldDownTown%2FTapticEngine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WorldDownTown","download_url":"https://codeload.github.com/WorldDownTown/TapticEngine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228187610,"owners_count":17882335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","swift","uifeedbackgenerator"],"created_at":"2024-01-05T20:15:42.319Z","updated_at":"2024-12-04T20:31:10.108Z","avatar_url":"https://github.com/WorldDownTown.png","language":"Swift","funding_links":[],"categories":["Hardware","Swift"],"sub_categories":["Other Hardware","Other free courses"],"readme":"# TapticEngine\n\n[![License](https://img.shields.io/:license-mit-blue.svg)](https://doge.mit-license.org)\n[![Swift](https://img.shields.io/badge/Swift-4.1-orange.svg?style=flat)](https://developer.apple.com/swift)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/TapticEngine.svg?style=flat)](http://cocoadocs.org/docsets/TapticEngine/)\n[![Downloads with CocoaPods](https://img.shields.io/cocoapods/dt/TapticEngine.svg)](http://cocoadocs.org/docsets/TapticEngine/)\n[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/matteocrippa/awesome-swift#haptic-feedback)\n\n## Overview\nTapticEngine generates haptic feedback vibrations on iOS device.\nThis 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).\n\n\u003cimg src=\"https://raw.githubusercontent.com/WorldDownTown/TapticEngine/master/images/taptic_engine.png\" alt=\"demo_screenshot\" width=\"375px\" /\u003e\n\n## Demo\nBuild Xcode project.\n\n1. Open TapticEngine.xcodeproj.\n2. Change Scheme to `TapticEngineDemo`\n3. Run\n\n## Usage\n\n```swift\n// Triggers an impact feedback between small, light user interface elements. (`UIImpactFeedbackStyle.light`)\nTapticEngine.impact.feedback(.light)\n\n// Triggers an impact feedback between moderately sized user interface elements. (`UIImpactFeedbackStyle.medium`)\nTapticEngine.impact.feedback(.medium)\n\n// Triggers an impact feedback between large, heavy user interface elements.  (`UIImpactFeedbackStyle.heavy`)\nTapticEngine.impact.feedback(.heavy)\n\n// Triggers a selection feedback to communicate movement through a series of discrete values.\nTapticEngine.selection.feedback()\n\n// Triggers a notification feedback, indicating that a task has completed successfully. (`UINotificationFeedbackType.success`)\nTapticEngine.notification.feedback(.success)\n\n// Triggers a notification feedback, indicating that a task has produced a warning. (`UINotificationFeedbackType.warning`)\nTapticEngine.notification.feedback(.warning)\n\n// Triggers a notification feedback, indicating that a task has failed. (`UINotificationFeedbackType.error`)\nTapticEngine.notification.feedback(.error)\n\n// Prepare an impact feedback for `UIImpactFeedbackStyle.light`.\nTapticEngine.impact.prepare(.light)\n\n// Prepare a selection feedback.\nTapticEngine.selection.prepare()\n\n// Prepare a notification feedback.\nTapticEngine.notification.prepare()\n```\n\n## Requirements\n- Swift 4.0+\n- iOS 9.0+ (**But it works on iOS 10 or later. On iOS 9, it does nothing.**)\n\n## Installation\n\n### Carthage\nTapticEngine is available through [Carthage](https://github.com/Carthage/Carthage). To install it, simply add the following line to your Cartfile:\n\n```\ngithub \"WorldDownTown/TapticEngine\"\n```\n\n### CocoaPods\nTapticEngine is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod 'TapticEngine'\n```\n\n### Manually\nDownload and drop `TapticEngine/Sources` folder in your project.\n\n## Author\nWorldDownTown, WorldDownTown@gmail.com\n\n## License\nTapticEngine is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWorldDownTown%2FTapticEngine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWorldDownTown%2FTapticEngine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWorldDownTown%2FTapticEngine/lists"}