https://github.com/cokaholic/tapticsampler
Code examples of using UIFeedBackGenerator.
https://github.com/cokaholic/tapticsampler
haptic-feedback peek-and-pop shortcut-items swift4 taptic-engine uifeedbackgenerator xcode9
Last synced: 25 days ago
JSON representation
Code examples of using UIFeedBackGenerator.
- Host: GitHub
- URL: https://github.com/cokaholic/tapticsampler
- Owner: cokaholic
- License: mit
- Created: 2018-08-30T14:29:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-30T15:25:03.000Z (over 6 years ago)
- Last Synced: 2025-04-03T14:43:35.570Z (about 2 months ago)
- Topics: haptic-feedback, peek-and-pop, shortcut-items, swift4, taptic-engine, uifeedbackgenerator, xcode9
- Language: Swift
- Size: 4.21 MB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TapticSampler
Code examples of using UIFeedBackGenerator.# Contents
- [Features](#features)
- [Usage](#usage)
- [Requirements](#requirements)
- [Author](#author)## Features

[](http://mit-license.org)
- [x] You can try sample of UIKit modules including UIFeedBackGenerator
- [x] You can try sample of UIFeedBackGenerator
- [x] Support `Swift4`## Usage
TopViewController
![]()
### Sample of UIKit Modules Including UIFeedBackGenerator
- **UIRefreshControl**
Feedback occur when you pulled down screen.- **UISwitch**
Feedback occur when you changed switch.- **UIPickerView**
Feedback occur when you changed picker.- **Peek and Pop**
Feedback occur when you pressed "Peek and Pop" cell strongly.
![]()
- **UIApplicationShortcutItem**
Feedback occur when you pressed this app strongly from home screen.
![]()
### Sample of UIFeedBackGenerator
- **UIImpactFeedbackGenerator**
- light
- medium
- heavy- **UINotificationFeedbackGenerator**
- error
- warning
- success- **UISelectionFeedbackGenerator**
## Requirements
- Xcode 9.0+
- Swift 4.0+
- iOS 10.0+## Author
**Keisuke Tatsumi**
iOS Application Engineer at AbemaTV Co., Ltd. CyberAgent, Inc.
- [GitHub](https://github.com/cokaholic)
- [Facebook](https://www.facebook.com/keisuke.tatsumi.50)
- [Twitter](https://twitter.com/TK_u_nya)