An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# TapticSampler
Code examples of using UIFeedBackGenerator.

# Contents
- [Features](#features)
- [Usage](#usage)
- [Requirements](#requirements)
- [Author](#author)

## Features

![Platform](http://img.shields.io/badge/platform-ios-blue.svg?style=flat-square
)
[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat-square
)](http://mit-license.org)
![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat-square)

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